Browse Source

Fix fields in XHR remote uploader

Before this all field data values were the same so remote uploads didn't work with S3.
Dmytro Sadovnychyi 7 years ago
parent
commit
8688aeb85d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/plugins/XHRUpload.js

+ 1 - 1
src/plugins/XHRUpload.js

@@ -207,7 +207,7 @@ module.exports = class XHRUpload extends Plugin {
         : Object.keys(file.meta)
 
       metaFields.forEach((name) => {
-        fields[name] = file.meta.name
+        fields[name] = file.meta[name]
       })
 
       fetch(file.remote.url, {