Home > Article > Backend Development > wupload swfupload multiple file upload implementation code
var swfu;
window.onload = function() {
var settings = {
flash_url : "js/swfupload_f9.swf", //flash address
upload_url: "upload.php", //Upload file processing address
post_params: {"PHPSESSID" : ""},
file_size_limit : "1000", //The default size limit unit is kb
file_types : "*.jpg;*.gif;*.png;*.swf", //File type
file_types_description : "Web Image Files", //File type description
file_upload_limit : 100, //Upload file limit
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,
up load_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete
};
swfu = new SWFUpload(settings);
};
The above introduces the wupload swfupload multi-file upload implementation code, including wupload content. I hope it will be helpful to friends who are interested in PHP tutorials.