Browse Source

transloadit: Disable fast remote retry optimisation.

Renée Kooi 7 năm trước cách đây
mục cha
commit
ce7d485251
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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
         // Disable tus-js-client fingerprinting, otherwise uploading the same file at different times
         // will upload to the same assembly.
         // will upload to the same assembly.
         resume: false,
         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.
         // Only send assembly metadata to the tus endpoint.
         metaFields: ['assembly_url', 'filename', 'fieldname']
         metaFields: ['assembly_url', 'filename', 'fieldname']
       })
       })