Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit dddf2f1

Browse files
committed
rename largeFileUpload to multipartFileUpload
1 parent fc2d809 commit dddf2f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class RNFetchBlobConfig {
2020
public long timeout = 60000;
2121
public Boolean increment = false;
2222
public ReadableArray binaryContentTypes = null;
23-
public boolean largeFileUpload;
23+
public boolean multipartFileUpload;
2424

2525
RNFetchBlobConfig(ReadableMap options) {
2626
if(options == null)
@@ -47,7 +47,7 @@ public class RNFetchBlobConfig {
4747
if(options.hasKey("timeout")) {
4848
this.timeout = options.getInt("timeout");
4949
}
50-
this.largeFileUpload = options.hasKey("largeFileUpload") ? options.getBoolean("largeFileUpload") : false;
50+
this.multipartFileUpload = options.hasKey("multipartFileUpload") ? options.getBoolean("multipartFileUpload") : false;
5151
}
5252

5353
}

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public void run() {
167167

168168
}
169169

170-
if(this.options.largeFileUpload) {
170+
if(this.options.multipartFileUpload) {
171171
HashMap<String, String> mheaders = new HashMap<>();
172172
// set headers
173173
if (headers != null) {

0 commit comments

Comments
 (0)