Server Control Basics

Server Control Basics

The <au:AjaxFileUpload> server control provides a declarative way to add file uploads. Use properties to configure behavior without writing JavaScript.

Drag & drop files here, or paste from clipboard
<au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 MaxFileSize="5MB"
 AllowedExtensions=".jpg,.png,.gif,.pdf"
 MaxFileCount="5"
 ButtonText="Choose Files"
 AutoUpload="true"
 ShowProgress="true" />
Common Properties
PropertyDescription
AllowMultipleAllow selecting multiple files
MaxFileSizeMaximum file size (e.g. "5MB")
AllowedExtensionsComma-separated allowed extensions
MaxFileCountMaximum number of files
AutoUploadStart uploading immediately on selection
ShowProgressShow upload progress bar
EnableDropZoneEnable drag-and-drop file selection
ShowThumbnailsShow image thumbnails in queue
ButtonTextCustom text for the upload button