xhrupload: Fix custom fields in remote uploads

uppy-server calls this `metadata`. Part of allowing uppy-server to
upload to S3, see https://github.com/transloadit/uppy-server/issues/57
This commit is contained in:
Renée Kooi 2018-01-29 13:36:29 +01:00
parent 33f20fb0f4
commit abf7d58ee1
No known key found for this signature in database
GPG key ID: 8CDD5F0BC448F040

View file

@ -226,7 +226,7 @@ module.exports = class XHRUpload extends Plugin {
endpoint: opts.endpoint,
size: file.data.size,
fieldname: opts.fieldName,
fields,
metadata: fields,
headers: opts.headers
}))
})