From 812a4b32b45a21921535e554d43dfb2de44a5933 Mon Sep 17 00:00:00 2001 From: macdonst Date: Fri, 7 Jan 2011 23:15:53 +0800 Subject: [PATCH] Adding file key properly --- framework/src/com/phonegap/FileTransfer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/com/phonegap/FileTransfer.java b/framework/src/com/phonegap/FileTransfer.java index ae8425d1..4435f1ef 100644 --- a/framework/src/com/phonegap/FileTransfer.java +++ b/framework/src/com/phonegap/FileTransfer.java @@ -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);