I upload file via TUS with /stream?direct_user=true
for safe upload by users.
but when upload aborted can not resume this again.
i check my borwser and found after upload no row added in local storage as fingerprint.
why this happen?
and how i fixed it?
var options = {
uploadUrl: 'https://upload.videodelivery.net/tus/xxxxxx?tusv2=true',
chunkSize: chunkSize,
retryDelays: retryDelays,
parallelUploads: parallelUploads,
metadata: {
filename: file.name,
filetype: file.type,
},
headers: {},
onError: function (error) {
// do some things
},
onProgress: function (bytesUploaded, bytesTotal) {
// do some things
},
onSuccess: function () {
// do some things
}
}
upload = new tus.Upload(file, options)
upload.start();