Expo and uploading image Blobs?

Hello @allpwrfulroot!

Currently the Blob web API isn’t supported but we have a couple of pull requests open on React Native upstream to add support for this. That said, you can actually already upload images without using the Blob api – closed source tools like Firebase that depend on Blob won’t work until the pull requests land, but until then, you can just use fetch!

Check out this example for uploading to s3: https://github.com/expo/image-upload-example
And of course you can try it in the Expo client: https://expo.io/@community/image-upload-example

If you need to use Firebase or something like that, you could upload to s3 and store the URL in the DB service.

I hope that helps!

4 Likes