There was an error while loading. Please reload this page.
1 parent 594933e commit fd8b732Copy full SHA for fd8b732
server/wp-client.js
@@ -35,7 +35,7 @@ function makeMultipartBody( payload, boundary ) {
35
body = body.concat(
36
Utilities.newBlob(
37
'--' + boundary + CRLF
38
-+ 'Content-Disposition: form-data; name="' + k + '"; filename="' + fileNameForBlob( v ) + '"' + CRLF
++ 'Content-Disposition: form-data; name="' + k + '"; filename="' + encodeURIComponent( fileNameForBlob( v ) ) + '"' + CRLF
39
+ 'Content-Type: ' + v.getContentType() + CRLF
40
// + 'Content-Transfer-Encoding: base64' + CRLF
41
+ CRLF
0 commit comments