-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create URL for blob! #440
Comments
Hey @slytter, is it reproducible on the emulator? |
Havn't tried it, but as I see it's a problem relatated to the js runtime, so it should be reproducable on the emulator as well. |
We are also experiencing this issue. Is there a solution or workaround available? |
Hello! Please try |
Thanks for your response @nd0ut but on Android it works when I use and Image object instead of a blob. Also, just FYI, when I installed the above version it kept erroring out saying public key is required even when I had the public key attached imageAsset = { |
Could you provide exact code snippet, react-native version (and Expo version in case you use it), Android SDK version? |
I updated the filePayload to use Image asset for android because blob format didn't work on Android And when I updated the upload care version |
@sourabhdadapure could you also provide content type and size of your file? And did I understand correctly that you don't use Expo? |
Describe the bug
Cannot upload images via method
UploadClient.uploadFile
on android using Expo Go.I get the following error:
"Cannot create URL for blob!"
When I try to upload an image to Uploadcare via the JS api client, it fails on android only
Expected behavior
The image 'test.jpg' is expected to be uploaded to ImageCare upon following code being executed:
Code / screenshots
Environment
Library version:
5.1.1
Language/framework version:
expo: 46.0.0
(managed workflow)react-native: 0.69.6
OS version:
Android 11 (OnePlus 6)
The text was updated successfully, but these errors were encountered: