Skip to main content

DXUploadControl

  • 3 minutes to read

The UploadControl allows end-users to upload one or more files to the web application's server. The control provides numerous settings, allowing you to specify the maximum number of files that can be uploaded at a time, the maximum size of a file or all files, package size, file filter, etc.

UploadControl

#Server Settings

The UploadControl requires its server settings to be specified. These settings include:

For a tutorial describing how to implement DXUploadControl's server side, see Server-Side Upload Service.

#Upload Settings

#End-User Capabilities

#Event Notification

Before starting an upload, the UploadControl fires the UploadControl.BeforeStartUpload event.

During an upload, the UploadControl displays the total upload progress bar with individual progress bars displayed within every upload item. After a single file has been uploaded, the UploadControl.FileUploadCompleted event is fired. When the entire upload is completed, the UploadControl.TotalUploadCompleted event is fired. The UploadControl.UploadItemRemoved event is fired after an upload of a single file has been canceled. After a whole upload has been canceled, the UploadControl.UploadCancelled event is fired.

If an error occurs during an upload, the UploadControl.UploadError event is raised.

#Preview Images

The UploadControl allows you to show preview images within its items.

UploadControl_PreviewImage

Use the UploadControl.ShowPreviewImage method when handling the UploadControl.FileUploadCompleted or UploadControl.UploadItemRemoved event to show an image within a particular item. You can also apply a bitmap effect to the preview image via the UploadControl.SetUploadItemEffect method.

#Examples