Skip to main content

DxUpload Members

A control that allows users to upload files to a web server.

Constructors

Name Description
DxUpload() Initializes a new instance of the DxUpload class.

Properties

Name Description
AcceptedFileTypes Specifies one or multiple MIME types that the Upload component accepts.
AllowCancel Specifies whether users can cancel file upload.
AllowedFileExtensions Specifies file extensions that the Upload component accepts.
AllowMultiFileUpload Specifies whether users can upload (select in an Open File dialog or drag and drop) multiple files via the Upload component.
AllowPause Specifies whether users can pause file upload in chunk upload mode.
ChunkSize Specifies the chunk size in bytes.
CssClass Assign a CSS class to the component. Inherited from DxComponentBase.
ExternalDropZoneCssSelector Specifies the CSS selector of a container or HTML element wherein users can drop files to upload.
ExternalDropZoneDragOverCssClass Assign a CSS class to for the drop zone when users drag files over it.
ExternalSelectButtonCssSelector Specifies the CSS selector of a button or HTML element that invokes the open file dialog.
Id Specifies the component’s unique identifier. Inherited from DxComponentBase.
MaxFileCount Specifies the maximum number of files a user can select to upload.
MaxFileSize Specifies the maximum file size in bytes.
MinFileSize Specifies the minimum file size in bytes.
Name Specifies a unique identifier used to associate the Upload component with uploaded files on the server.
SelectButtonText Specifies the select button’s text.
ShowFileList Specifies whether to show the file list.
ShowSelectButton Specifies whether to show the select button that invokes the open file dialog.
UploadMode Specifies how the Upload component uploads files to the server.
UploadUrl Specifies a target URL for the upload request.
Visible Specifies whether the Upload is visible.

Methods

Name Description
CancelAllFilesUpload() Cancels upload of all files displayed in the Upload component.
CancelFilesUpload(IEnumerable<UploadFileInfo>) Cancels upload of multiple files displayed in the Upload component.
CancelFileUpload(UploadFileInfo) Cancels a specific file’s upload.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
PauseAllFilesUpload() Pauses upload of all files to the server.
PauseFilesUpload(IEnumerable<UploadFileInfo>) Pauses upload of multiple files to the server.
PauseFileUpload(UploadFileInfo) Pauses upload of the specified file to the server.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ReloadAllFiles() Reloads all files whose upload was cancelled.
ReloadFile(UploadFileInfo) Reloads a file whose upload was canceled.
ReloadFiles(IEnumerable<UploadFileInfo>) Reloads multiple files whose upload was cancelled.
RemoveAllFiles() Removes all files from the file list.
RemoveFile(UploadFileInfo) Removes a specific file from the file list.
RemoveFiles(IEnumerable<UploadFileInfo>) Removes the specified files from the file list.
ToString() Returns a string that represents the current object. Inherited from Object.
UploadAllFiles() Uploads all files displayed in the Upload component except for cancelled ones.
UploadFile(UploadFileInfo) Uploads the specified file to the server.
UploadFiles(IEnumerable<UploadFileInfo>) Uploads the specified files to the server.

Events

Name Description
FileReloaded Fires when a file is reloaded.
FileUploadAborted Fires when the file upload is aborted.
FileUploaded Fires when a file was uploaded.
FileUploadError Fires if an error occurs during file upload.
FileUploadPaused Fires when file upload is paused.
FileUploadProgressChanged Fires when the upload progress changes.
FileUploadStart Fires when file upload is about to start.
FileUploadStarted Fires when the file upload starts.
SelectedFilesChanged Fires when the file list changes.
See Also