Back to Devexpress

DxUpload Members

blazor-devexpress-dot-blazor-dot-dxupload-dot-underscore-members.md

latest10.0 KB
Original Source

DxUpload Members

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

Constructors

NameDescription
DxUpload()Initializes a new instance of the DxUpload class.

Properties

NameDescription
AcceptedFileTypesFilters files in the Open File dialog and specifies MIME types that the Upload component can upload.
AllowCancelSpecifies whether users can cancel file upload.
AllowedFileExtensionsSpecifies file extensions that the Upload component can upload.
AllowMultiFileUploadSpecifies whether users can upload (select in an Open File dialog or drag and drop) multiple files via the Upload component.
AllowPauseSpecifies whether users can pause file upload in chunk upload mode.
AttributesSpecifies a collection of standard HTML attributes applied to the component. Inherited from DxControlComponent<JSProxyType>.
ChunkSizeSpecifies the chunk size in bytes.
CssClassAssigns a CSS class to the component. Inherited from DxComponent.
ExternalDropZoneCssSelectorSpecifies the CSS selector of a container or HTML element wherein users can drop files to upload.
ExternalDropZoneDragOverCssClassAssigns a CSS class to the drop zone when users drag files over it.
ExternalSelectButtonCssSelectorSpecifies the CSS selector of a button or HTML element that invokes the open file dialog.
IdSpecifies the component’s unique identifier. Inherited from DxComponent.
MaxFileCountSpecifies the maximum number of files a user can select to upload.
MaxFileSizeSpecifies the maximum file size in bytes.
MinFileSizeSpecifies the minimum file size in bytes.
NameSpecifies a unique identifier used to associate the Upload component with uploaded files on the server.
SelectButtonTextSpecifies the select button’s text.
ShowFileListSpecifies whether to show the file list.
ShowSelectButtonSpecifies whether to show the select button that invokes the open file dialog.
UploadModeSpecifies how the Upload component uploads files to the server.
UploadUrlSpecifies a target URL for the upload request.
ValidateByAcceptedFileTypesSpecifies whether the component validates files against accepted file types before uploading them.
VisibleSpecifies whether the Upload is visible.

Methods

NameDescription
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) staticDetermines 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() protectedCreates 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) staticDetermines 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.
ShowOpenFileDialog()Displays the Open File dialog.
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

NameDescription
FileReloadedFires when a file is reloaded.
FileUploadAbortedFires when the file upload is aborted.
FileUploadedFires when a file was uploaded.
FileUploadErrorFires if an error occurs during file upload.
FileUploadPausedFires when file upload is paused.
FileUploadProgressChangedFires when the upload progress changes.
FileUploadStartFires when file upload is about to start.
FileUploadStartedFires when the file upload starts.
SelectedFilesChangedFires when the file list changes.

See Also

DxUpload Class

DevExpress.Blazor Namespace