Skip to content

Commit

Permalink
tus-js-uploader metadata fix -- this was always null, but previous ve…
Browse files Browse the repository at this point in the history
…rsions didn't blow up; now it does
  • Loading branch information
dannon committed Oct 19, 2023
1 parent 2c2c58c commit bee2b6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/utils/upload-submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function tusUpload(uploadables, index, data, tusEndpoint, cnf) {
retryDelays: [0, 3000, 10000],
fingerprint: buildFingerprint(cnf),
chunkSize: chunkSize,
metadata: data.payload,
storeFingerprintForResuming: false,
onError: function (err) {
const status = err.originalResponse?.getStatus();
Expand Down Expand Up @@ -73,7 +72,7 @@ function tusUpload(uploadables, index, data, tusEndpoint, cnf) {

function tusUploadStart(upload) {
// Check if there are any previous uploads to continue.
upload.findPreviousUploads().then(function (previousUploads) {
upload.findPreviousUploads().then((previousUploads) => {
// Found previous uploads so we select the first one.
if (previousUploads.length) {
console.log("previous Upload", previousUploads);
Expand Down

0 comments on commit bee2b6a

Please sign in to comment.