Skip to content

Commit 9c34f47

Browse files
authored
Modify android HTTP upload sequence for uniformity with IOS
Date: Feb2018 Description Android cordova-plugin-advanced-http 'upload' sequence was modified: - to respect the order of operations some sites requires, like amazonaws.com - to have the same behaviour as the IOS counterpart. Tests Manual manipulations on Android and PC
1 parent 3f1ee62 commit 9c34f47

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)