var swfu;
window.onload = function() {
var settings = {
flash_url : "js/swfupload_f9.swf", //flash位址
upload_url: "upload.php", /upload.php", / /上傳檔案處理位址
post_params: {"PHPSESSID" : "“},
file_size_limit : “1000″, //大小限制預設單位為kb
file_types : “*.jpg;*.gif; *.png;*.swf”,//檔案類型
file_types_description : “Web Image Files”,//檔案類型描述
file_upload_limit : 100,//上傳檔案限制
file_queue_limit : 0,
custom_settings : {
progressTarget : “fsUploadProgress”,
cancelButtonId : “btnCancel”
},
debug: false,
file_queued_handler : 長度,Quueler> 🎜> file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadEr. complete_handler : uploadComplete,
queue_complete_handler : queueComplete
};
swfu = new SWFUpload(settings);
};
以上就介紹了wupload swfupload 多檔案上傳實作程式碼,包含了wupload方面的內容,希望對PHP教學有興趣的朋友有幫助。