Although codeplex already has some Multifile upload controls with progress bars, they do not think they are very easy to use. Therefore, we re-designed an upload control based on the preceding controls for better interaction, property binding and file management.
1. Client usage:
< Mycontrol: fileuploadcontrol X: Name = "Uploader" Filter = "Text file | *. txt" Removetext = "Cancel" Addtext = "Uploading local files" />
< Textbox Text =" {Binding returnurl, elementname = uploader ,......
<Image Source = " {Binding returnurl, elementname = Uploader ......
Property settings:
Filter: File types that can be uploaded
Removetext: The text of the button when the upload is canceled
Addtext: Upload the text of the button
Maximumupload: File size limit
Uploadchunksize: Segment Size
Returnurl: The URL returned after the upload is complete, such as files/uploadfiles/20110320/123. txt
2. Server Side settings: fileupload. ashx
Mainly implements file processing in fileupload_fileuploadcompleted:
For example, define the storage path for the file and process the thumbnail of the image file.
3. Source Code: Click to download
4. Online Demo: Click to preview