Adding file key properly

This commit is contained in:
macdonst 2011-01-07 23:15:53 +08:00
parent 023df10f31
commit 812a4b32b4

View File

@ -198,7 +198,7 @@ public class FileTransfer extends Plugin {
}
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(LINE_END);