You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tus-js-client doesn't upload file larger than 100Mb for Android. I've got next error - "Failed to upload because: Error: tus: cannot fetch file.uri as Blob, make sure the uri is correct and accessible. [object Object]"
I get video file data by "react-native-document-picker" library.
And when uploading started, I get this error - "Failed to upload because: Error: tus: cannot fetch file.uri as Blob, make sure the uri is correct and accessible. [object Object]"
Files lower than 100Mb uploading very well, but larger don't( This problem only for an Android, IOS is ok.
The text was updated successfully, but these errors were encountered:
I cannot confirm this issue.
I can successfully upload a 500 MB video file with tus-js-client3.0.1 to my own TUS server implementation, with both Firefox and Chrome on Android 11 (LineageOS on a Google Pixel 1).
Separate: In your code:
const uploader = new tus.Upload(file, {
//...
chunkSize,
It looks like here you're passing the large file's full size as chunkSize.
According to chunkSize docs this will pull the whole file into RAM:
A large chunk size (more than a GB) is problematic when a reader/readable stream is used as the input file. In these cases, tus-js-client will create an in-memory buffer with the size of chunkSize
On Android devices you usually don't have a lot of RAM, so this might be problematic.
tus-js-client doesn't upload file larger than 100Mb for Android. I've got next error - "Failed to upload because: Error: tus: cannot fetch file.uri as Blob, make sure the uri is correct and accessible. [object Object]"
I get video file data by "react-native-document-picker" library.
Than i get data like:
Than i push assets to tus upload component and get presight params:
And when uploading started, I get this error - "Failed to upload because: Error: tus: cannot fetch file.uri as Blob, make sure the uri is correct and accessible. [object Object]"
Files lower than 100Mb uploading very well, but larger don't( This problem only for an Android, IOS is ok.
The text was updated successfully, but these errors were encountered: