fixed and tested uploading resource content via uri scheme