diff --git a/src/request.js b/src/request.js index ea81786a..672cdc22 100644 --- a/src/request.js +++ b/src/request.js @@ -62,7 +62,7 @@ export default function upload(option) { }); } - formData.append(option.filename, option.file); + formData.append(option.filename, option.file, option.file && option.file.name); xhr.onerror = function error(e) { option.onError(e);