Ain ASP component-less upload class cooperates with Flash to realize multi-file upload. You can freely define the upload file size, type, etc. For specific parameters, please refer to the configuration of index.html.
2012-4-11: Beautify the interface and add callback function
var Setting={
debug:false,
upload_url: "upload.asp",
file_post_name : "filedata",
file_types: "*.bmp;*.rar;*.iso;*.jpg;*.gif;*.png;*.exe;*.flv",//File format restrictions
file_types_description: "File type", //File format description
file_size_limit : "100 MB", // File size limit
file_upload_limit: 5//Total number of uploaded files
};
//Callback function, this.name will return the file name on the server; if you don’t need it, you can directly remove this function, or leave the function content blank.
function CallBack(){
document.getElementById("fileUploaded").value += "n" + this.name;
}
Expand