Selaa lähdekoodia

transloadit: Disable fast remote retry optimisation.

Renée Kooi 7 vuotta sitten
vanhempi
commit
ce7d485251
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/plugins/Transloadit/index.js

+ 3 - 0
src/plugins/Transloadit/index.js

@@ -813,6 +813,9 @@ module.exports = class Transloadit extends Plugin {
         // Disable tus-js-client fingerprinting, otherwise uploading the same file at different times
         // will upload to the same assembly.
         resume: false,
+        // Disable Uppy Server's retry optimisation; we need to change the endpoint on retry
+        // so it can't just reuse the same tus.Upload instance server-side.
+        useFastRemoteRetry: false,
         // Only send assembly metadata to the tus endpoint.
         metaFields: ['assembly_url', 'filename', 'fieldname']
       })