1
我正在使用cordovaFileTransfer插件。 下面的代碼,我也發送選項變量到我的upload.php文件。獲取FileTransfer上傳選項變量在php中
var options = {
fileKey: "file",
channel: $scope.channel,
fileName: $scope.filename ,
chunkedMode: false,
mimeType: "image/jpg"
};
$cordovaFileTransfer.upload(server, filePath, options).then(function(result) {
...
如何從我的php文件中檢索「通道」值(在選項變量中)。 在我的php文件中,我嘗試了$channel = $_POST["channel"];
,但這不起作用。
PARAMS獲得香奈兒PARAM:參數 –
是啊,謝謝!編輯 – jcesarmobile