我的頭代碼:jQuery插件'uploadify' - 從上傳腳本返回響應的方式?
$(document).ready(function() {
$('#sampleFile').uploadify({
'uploader': 'include/uploadify/uploadify.swf',
'script': 'add_list.php',
'scriptData': {'mode': 'upload'},
'fileDataName': 'sampleFile',
'folder': '/work/avais/bizlists/lists',
'cancelImg': 'include/uploadify/cancel.png',
'queueID': 'sampleQueue'
});
});
據我所知,我只能在「add_list.php」文件做的是通過移動文件到最終完成目錄上傳過程中脫落;我不認爲我有什麼辦法可以像錯誤一樣「回報」什麼嗎?
如果我可以使用這個文件來禁止某些字符,或者在出現某種問題時返回一個錯誤,但是我不認爲有這種情況會很好嗎?
我想我可以刪除任何不好的字符,但會知道我是否可以以某種方式返回響應?
[Uploadify:顯示來自HTTP響應的錯誤消息]可能的副本(http://stackoverflow.com/questions/1877644/uploadify-show-error-message-from-http-response) – 2010-10-31 22:29:08