Skip to content

Commit 8c08573

Browse files
authored
Merge pull request itinance#808 from davidyaha/fix-s3-upload-android
Should not send tail string for binaryStreamOnly option on Android
2 parents b69692e + d241243 commit 8c08573

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/com/rnfs/Uploader.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ private void upload(UploadParams params, UploadResult result) throws Exception {
159159
fileCount++;
160160
bufInput.close();
161161
}
162-
request.writeBytes(tail);
162+
if (!binaryStreamOnly) {
163+
request.writeBytes(tail);
164+
}
163165
request.flush();
164166
request.close();
165167

0 commit comments

Comments
 (0)