@uppy/xhr-upload
Advanced tools
Comparing version 0.27.1 to 0.27.2
@@ -195,3 +195,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
formPost.append(opts.fieldName, file.data); | ||
if (file.name) { | ||
formPost.append(opts.fieldName, file.data, file.name); | ||
} else { | ||
formPost.append(opts.fieldName, file.data); | ||
} | ||
@@ -198,0 +202,0 @@ return formPost; |
{ | ||
"name": "@uppy/xhr-upload", | ||
"description": "Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.", | ||
"version": "0.27.1", | ||
"version": "0.27.2", | ||
"license": "MIT", | ||
@@ -28,13 +28,12 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "0.27.1", | ||
"@uppy/utils": "0.27.0", | ||
"@uppy/companion-client": "0.27.2", | ||
"@uppy/utils": "0.27.1", | ||
"cuid": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@uppy/core": "0.27.0" | ||
"@uppy/core": "0.27.1" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^0.27.0" | ||
}, | ||
"gitHead": "6b82d12d42a0dfdd9e0677a18efcaf44c251c58c" | ||
} | ||
} |
@@ -176,3 +176,7 @@ const { Plugin } = require('@uppy/core') | ||
formPost.append(opts.fieldName, file.data) | ||
if (file.name) { | ||
formPost.append(opts.fieldName, file.data, file.name) | ||
} else { | ||
formPost.append(opts.fieldName, file.data) | ||
} | ||
@@ -179,0 +183,0 @@ return formPost |
37004
914
+ Added@uppy/companion-client@0.27.2(transitive)
- Removed@uppy/companion-client@0.27.1(transitive)
- Removed@uppy/utils@0.27.0(transitive)
Updated@uppy/utils@0.27.1