mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
npm run lint -- --fix
This commit is contained in:
parent
0c245855ba
commit
c86b7e29fa
1 changed files with 3 additions and 4 deletions
|
|
@ -174,10 +174,9 @@ module.exports = class XHRUpload extends Plugin {
|
|||
})
|
||||
|
||||
if (file.name) {
|
||||
formPost.append(opts.fieldName, file.data, file.name);
|
||||
}
|
||||
else {
|
||||
formPost.append(opts.fieldName, file.data);
|
||||
formPost.append(opts.fieldName, file.data, file.name)
|
||||
} else {
|
||||
formPost.append(opts.fieldName, file.data)
|
||||
}
|
||||
|
||||
return formPost
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue