650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/3E/07/wKioL1PF-x2z4OBQAAGlUOFIGYk239.jpg "title=" Bulk upload files "alt=" Wkiol1pf-x2z4obqaagluofigyk239.jpg "/>
$ ("#uploader"). Plupload ({ /* general settings */ runtimes: ' Html5,flash, Silverlight,html4 ', url: ' Hyzx/seller/commpicupload.action ', /* Maximum file limit b, kb, mb, gb, tb */ max_file_size: ' 1MB ', /* whether to generate a unique file name if True will be a unique filename for the uploaded file. */ unique_names:true, /* can upload */ multiple times multiple_queues:true, /* is enabled to drag and drop files to the window, the default true (currently only HTML5 support) */ dragdrop:true, /* file can be renamed before uploading, default false, Wood has found how to rename ah, whether to rename the file by clicking its title? */ rename:true, /* the number of files per upload is limited */ max_file_ count:1, /* If the file is too large, each piece of 100kb upload files, block file limit b,kb,mb,gb,tb*/ chunk_size : ' 100b ', file_data_name: "Upload", /* file_data_name: "", Settings UploadThe name of the field. is set to file by default. (I tried not to find how to use it, not to mention) */ /* multipart:true, * If you use Mutlipart instead of a binary stream, you cannot work under WebKit * the interpretation of the official website is to set the data flow structure passed to the background service, Use normal byte stream when * false, if true, use Mutlipart format, * may be to achieve large attachment multipart upload function if multipart:true, * is set, you can attach the Multipart_ params parameter to pass parameters instead of */ /* multipart_params:{' user ' by adding parameters after the service address : ' Rocky ', ' time ': ' 2012-06-12 '}, the key value pair associated with multipart */ /* required_ Features: Requires those features to initialize the plugin */ resize:{width:200,height:200,quality:90,crop:true/* Trim to the exact size default false*/}, buttons:{browse:true,start:false,stop:true}, /* Specifies that the Browse window is open for those files can be selected */ filters:[{title: "Picture file", Extensions: "Jpeg,jpg,gif,png"}], /* file Sort */ sortaBle:true, views:{list:true,thumbs:true,active: ' List '}, /* Whether to enable selecting multiple files in the Open dialog box, true to enable, false to disable */ multi_selection:true, flash_swf_url: ' plupload/js/plupload.flash.swf ', silverlight_xap_url: ' Plupload/js/plupload.silverlight.xap '});
This article from "Big treasure Son sweet See" blog, please be sure to keep this source http://abao0918.blog.51cto.com/1017613/1438934