Skip to content

Commit a637d70

Browse files
authored
Merge pull request silkimen#76 from Johny101/master
Modify Android HTTP upload sequence for IOS uniformity
2 parents 6f40ed5 + a52e243 commit a637d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/android/com/synconset/cordovahttp/CordovaHttpUpload.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public void run() {
5454
MimeTypeMap mimeTypeMap = MimeTypeMap.getSingleton();
5555
String mimeType = mimeTypeMap.getMimeTypeFromExtension(ext);
5656

57-
request.part(this.name, filename, mimeType, new File(uri));
58-
5957
Set<?> set = (Set<?>)this.getParamsMap().entrySet();
6058
Iterator<?> i = set.iterator();
6159

@@ -72,6 +70,8 @@ public void run() {
7270
return;
7371
}
7472
}
73+
74+
request.part(this.name, filename, mimeType, new File(uri));
7575

7676
this.returnResponseObject(request);
7777
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)