transloadit: Configure resume: false for the Tus plugin.

This commit is contained in:
Renée Kooi 2017-11-03 13:47:57 +01:00
parent cdde75db4c
commit 0be93a5e7a
No known key found for this signature in database
GPG key ID: 30516CF2A8E63718

View file

@ -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