|
|
|
@ -242,8 +242,8 @@ const sendFile = (toString => {
|
|
|
|
|
upload.onloadstart(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const boundary = `AjaxUploadBoundary${new Date().getTime()}`; |
|
|
|
|
if (handler.file.getAsBinary) { |
|
|
|
|
const boundary = `AjaxUploadBoundary${new Date().getTime()}`; |
|
|
|
|
xhr.setRequestHeader("Content-Type", `multipart/form-data; boundary=${boundary}`); |
|
|
|
|
xhr[xhr.sendAsBinary ? "sendAsBinary" : "send"](multipart(boundary, handler.name, handler.file)); |
|
|
|
|
} else { |
|
|
|
|