Skip to content

Commit 1cf6dfc

Browse files
authored
Merge pull request #221 from nvahalik/patch-1
Change form uploads to use multipart/mixed on Android
2 parents dfa0f42 + b5e6e6d commit 1cf6dfc

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)