0
我下面的文件上傳文檔併成功地與此代碼PhoneGap的文件傳輸上傳得到fileuploadoption值
var options = new FileUploadOptions();
options.fileKey="file";
options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
options.mimeType="image/jpeg";
var params = {};
params.value1 = "test";
params.value2 = "param";
options.params = params;
var ft = new FileTransfer();
ft.upload(imageURI, encodeURI("http://some.server.com/upload.php"), win, fail, options);
上傳圖片,但我怎麼訪問被髮送到服務器的fileuploadoptions?我正在使用php代碼將圖片上傳到一個文件夾。
正確答案。 – CroiOS 2013-04-23 19:11:04