Hi, I have a resumable upload requirement for my website. I used the UPPY TUS PROTOCOL, but uploading a 2 GB video file takes more than 2 hours. Please check the code and provide a solution ASAP.
const uppy = new Uppy.Core({
debug: true,
retryDelays: [0, 1000, 3000, 5000, 10000],
chunkSize: 10 * 1024 * 1024,
restrictions: {
maxFileSize: 10 * 1024 * 1024 * 1024,
allowedFileTypes: [‘video/*’],
}
});
uppy.use(Uppy.Dashboard, {
target: ‘#upload-container’,
showProgressDetails: true,
proudlyDisplayPoweredByUppy: false,
hidePauseResumeButton:false,
inline: true,
maxNumberOfFiles: 1
});
uppy.use(Uppy.Tus, {
endpoint: ‘https://tusd.tusdemo.net/files/’,
});
uppy.use(Uppy.ProgressBar, {
target: ‘#progress-bar-container’,
hideAfterFinish: true,
});
uppy.on(‘upload-success’, (file, response) => {
console.log(Upload success!, file.name, response.body);
});
Uppy Tus protocol uploading too slow?
Started by venkat1 reply132 views
venkatOriginal post
MerlijnTransloadit team
You shouldn’t set the chunkSize on the client unless you are forced to, as per the docs.
You are using the tusd demo website, which is not meant for your development or production purposes. Are you running a tus server yourself?