question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can´t upload image fetched from CameraRoll

See original GitHub issue

Hey there!

I am using React Natives Camera Roll to get my photos. When i upload this to my server from iOS device everything is fine. On Android this won´t work. Is there something additional i have to do, beside adding permissions maybe?

This is how my image looks like before i send it to the server:

 'content://media/external/images/media/142'

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marcshillingcommented, Mar 23, 2016

@yfuks maybe we should provide a little helper method on the Android side to get the url from a uri. This isn’t the first time someone has had trouble with it.

Something like… ImagePickerManager.getUrl(response.uri)

Thoughts?

1reaction
yfukscommented, Mar 18, 2016

First of all how did you upload your image on iOS ? Then content://media/external/images/media/142 is an URI so you need to use a module that support URI for upload or you need to use the file in base64

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can´t upload image fetched from CameraRoll #153 - GitHub
I am using React Natives Camera Roll to get my photos. When i upload this to my server from iOS device everything is...
Read more >
Cannot upload images captured from camera using react ...
I had used react-native-image-crop-picker npm package to get images from Camera Roll and Photo Gallery. And then upload it to AWS S3 Server....
Read more >
Solved: Uploading photos from camera roll - the Etsy Community
Re: Uploading photos from camera roll ... Go to setting , click Sell on Etsy, click Photos, Click All photos. Then you may...
Read more >
[Fixed] Photos and Videos Not Loading on iPhone - iMobie
If the photos and videos are not fully loading in camera roll on your iPhone, the following guide offers some of the fixes...
Read more >
7 Reasons Why Images Are Not Loading on Your Website
Website images fail to load for one of these seven common reasons.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found