Browse Source

transloadit: Configure `resume: false` for the Tus plugin.

Renée Kooi 7 years ago
parent
commit
0be93a5e7a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/plugins/Transloadit/index.js

+ 4 - 1
src/plugins/Transloadit/index.js

@@ -158,7 +158,10 @@ module.exports = class Transloadit extends Plugin {
           // Only send assembly metadata to the tus endpoint.
           metaFields: Object.keys(tlMeta),
           // Make sure tus doesn't resume a previous upload.
-          uploadUrl: null
+          uploadUrl: null,
+          // Disable tus-js-client fingerprinting, otherwise uploading the same file at different times
+          // will upload to the same assembly.
+          resume: false
         })
         const transloadit = {
           assembly: assembly.assembly_id