mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Adding file key properly
This commit is contained in:
parent
023df10f31
commit
812a4b32b4
@ -198,7 +198,7 @@ public class FileTransfer extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dos.writeBytes(LINE_START + BOUNDRY + LINE_END);
|
dos.writeBytes(LINE_START + BOUNDRY + LINE_END);
|
||||||
dos.writeBytes("Content-Disposition: form-data; name=\"file\";" + " filename=\"" + fileName +"\"" + LINE_END);
|
dos.writeBytes("Content-Disposition: form-data; name=\"" + fileKey + "\";" + " filename=\"" + fileName +"\"" + LINE_END);
|
||||||
dos.writeBytes("Content-Type: " + mimeType + LINE_END);
|
dos.writeBytes("Content-Type: " + mimeType + LINE_END);
|
||||||
dos.writeBytes(LINE_END);
|
dos.writeBytes(LINE_END);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user