Skip to content

Commit b5e6e6d

Browse files
author
Nick Vahalik
authored
Update UploadTask.java
Changes the content type to use `multipart/form-data` rather than `multipart/mixed` which some target servers do not know how to handle. This makes it match what is sent on the iOS platform as well.
1 parent dfa0f42 commit b5e6e6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/android/UploadTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ private Request createRequest() throws FileNotFoundException {
357357
}
358358

359359
bodyBuilder.addFormDataPart(fileKey, filepath, fileRequestBody);
360+
bodyBuilder.setType(MultipartBody.FORM);
360361

361362
// Start build request
362363
String method = getInputData().getString(KEY_INPUT_HTTP_METHOD);

0 commit comments

Comments
 (0)