|
window.onload = function() {
var settings = {
flash_url : "js/swfupload_f9.swf", //flash地址
upload_url: "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 : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete
};
swfu = new SWFUpload(settings);
};
php技術:swfupload 多文件上傳實現代碼,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。