浏览代码

transloadit: Disable fast remote retry optimisation.

Renée Kooi 7 年之前
父节点
当前提交
ce7d485251
共有 1 个文件被更改,包括 3 次插入0 次删除
  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']
       })