Re: [Firebase] Uploading picture error

177 views
Skip to first unread message

Samuel Stern

unread,
Jul 14, 2016, 1:50:36 PM7/14/16
to Firebase Google Group
That does seem strange, putFile should accept either a content URI or a file URI.


- Sam

On Thu, Jul 14, 2016 at 9:58 AM pigone123 <galking...@gmail.com> wrote:
hey guys.I am trying to upload a picture with "upload from a local file method".when the user pick from gallery or taking a picture the picture is saved in external storage and i save the url.

When i call the method and using the same url i get the error "could not locate file for uploading:file:///content%3A/media/external/images/media/22943" but when i use log to check the local file i get "uri is content://media/external/images/media/22943".I successfully loaded the image into an imageview and when I used uri.parse in upload from a local file method it
uploaded the metadata but not the photo itself.

Thanks

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2b6482c8-400b-4db2-ae05-5305405c21f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages