-
Notifications
You must be signed in to change notification settings - Fork 320
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
Error: tus: cannot fetch file.uri
as Blob, make sure the uri is correct and accessible.
#284
Comments
Please provide the full code you are using to upload with |
yes marius, I'm running on android code for the above problem using tus-js-client
console log of the object I'm getting this from expo-image-picker |
Thanks for the details. The code looks fine to me and as well as the file object. Are you sure that your application has the correct permissions to access the selected file? Does any other logs in the Android console give an indication of what the error could be? My current feeling is that this is caused by some missing setting in your Android application. The only possible cause directly in tus-js-client is that we are using XMLHttpRequest for fetching the file (https://github.com/tus/tus-js-client/blob/master/lib/browser/uriToBlob.js#L8), instead of the new Fetch API (see https://github.com/expo/examples/blob/1411319810e1fe1e365bebe9d867d40e587c9870/with-aws-storage-upload/App.js#L99-L103, for example). They should be equivalent but maybe I am wrong here. That might be worth an investigation if you cannot find anything in your app. |
Hi @stoner2497 ! Shouldn't the path be prefixed "file://" ? I have for android: |
Hi
and
Add Hope this helps! |
Hello, currenty I am facing the same issue. The error appears when uploading large files like 100mb. Used uri -> adb logcat indicates OOM error as I have expected. I am running out of ideas about being able to upload large files from android
|
Describe the bug
Not able to upload the file from tus-js-client react-native , showing [Error: tus: cannot fetch
file.uri
as Blob, make sure the uri is correct and accessible. [object Object]]Expected behavior
File to get uploaded on go lang local tus server
Setup details
Please provide the following details, if applicable to your situation:
The text was updated successfully, but these errors were encountered: