Properties
- AllowedFileTypes - A comma-separated list of allowed file extensions. The default is an empty string.
- AutoStartUpload - Whether or not automatically start upload files after drag/drop or select in file dialog. The default is false
- ChunkSize - The size of a chunk used by HTML5 to upload large files in bytes. The default is 4096.
- ClearFileListAfterUpload - Whether or not to hide file upload list container after the uploading finished
- IsInFileUploadPostBack - This will be true when a postback will be performed from the control. This can be used to avoid execution of unnecessary code during a partial postback. The default is false.
- MaxFileSize - The maximum size of a file to be uploaded in Kbytes. A non-positive value means the size is unlimited. The default is 0.
- MaximumNumberOfFiles - A maximum number of files in an upload queue. The default is 10.
- Mode - How AjaxFileUpload displays a progress bar. The default is Auto.
- OnClientUploadComplete - The name of a JavaScript function executed on the client side after a file is uploaded successfully.
- OnClientUploadCompleteAll - The client script that executes when all of files in queue uploaded, or when user hits Cancel button to stop uploading
- OnClientUploadError - The name of a JavaScript function executed on the client side if the file upload failed.
- OnClientUploadStart - The name of a JavaScript function executed on the client side before any files are uploaded.
- ServerPollingSupport - Whether or not AjaxFileUpload supports server polling.
- ThrobberID - The ID of a control that is shown on the file upload. The throbber image is displayed for browsers that do not support the HTML5 File API or server-side polling.
- UploadHandlerPath - Upload handler path
- UseAbsoluteHandlerPath - Whether or not to use absolute path for AjaxFileUploadHandler
Methods
- SaveAs(fileName) - Saves the uploaded file with the specified file name
Events
- UploadComplete - An event raised when the file upload is complete.
- UploadCompleteAll - An event handler that will be raised when the UploadComplete event is raised in all files in an upload queue, or when a user presses the Cancel button to stop uploading.
- UploadStart - An event raised when the file upload starts.