Skip to content

Commit

Permalink
Merge pull request #808 from davidyaha/fix-s3-upload-android
Browse files Browse the repository at this point in the history
Should not send tail string for binaryStreamOnly option on Android
  • Loading branch information
itinance authored Nov 12, 2019
2 parents b69692e + d241243 commit 8c08573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/src/main/java/com/rnfs/Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ private void upload(UploadParams params, UploadResult result) throws Exception {
fileCount++;
bufInput.close();
}
request.writeBytes(tail);
if (!binaryStreamOnly) {
request.writeBytes(tail);
}
request.flush();
request.close();

Expand Down

0 comments on commit 8c08573

Please sign in to comment.