Browse Source

transloadit: Fix finding correct file for a tus upload URL when upload has not completed.

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

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

@@ -239,7 +239,7 @@ module.exports = class Transloadit extends Plugin {
       if (!files.hasOwnProperty(id)) {
         continue
       }
-      if (files[id].uploadURL === uploadedFile.tus_upload_url) {
+      if (files[id].uploadURL === uploadedFile.tus_upload_url || (files[id].tus && files[id].tus.uploadUrl === uploadedFile.tus_upload_url)) {
         return files[id]
       }
     }