Back to Devexpress

DxFileInput Members

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

latest8.3 KB
Original Source

DxFileInput Members

A component that allows you to access the contents of selected files directly in razor code.

Constructors

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

Properties

NameDescription
AcceptedFileTypesFilters files in the Open File dialog and specifies MIME types the File Input component can upload.
AllowCancelSpecifies whether users can cancel upload operations.
AllowedFileExtensionsSpecifies file extensions that the File Input component can upload.
AllowMultiFileUploadSpecifies whether users can add multiple files to the file list simultaneously.
AttributesSpecifies a collection of standard HTML attributes applied to the component. Inherited from DxControlComponent<JSProxyType>.
CssClassAssigns a CSS class to the component. Inherited from DxComponent.
ExternalDropZoneCssSelectorSpecifies the CSS selector of a container or HTML element where users can drop files.
ExternalDropZoneDragOverCssClassAssigns a CSS class to the drop zone when users drag files over it.
ExternalSelectButtonCssSelectorSpecifies the CSS selector of a button or an HTML element that invokes the Open dialog.
IdSpecifies the component’s unique identifier. Inherited from DxComponent.
MaxFileCountSpecifies the maximum number of files that users can add to the file list.
MaxFileSizeSpecifies the maximum file size in bytes.
MinFileSizeSpecifies the minimum file size in bytes.
SelectButtonTextSpecifies the caption of the built-in select button.
ShowFileListSpecifies whether to show the file list.
ShowSelectButtonSpecifies whether to show the built-in select button that invokes the Open dialog.
UploadModeSpecifies when the File Input component starts upload operations.
ValidateByAcceptedFileTypesSpecifies whether the component validates files against accepted file types before uploading them.
VisibleSpecifies whether the component is visible.

Methods

NameDescription
CancelAllFilesUpload()Cancels upload processes for all files displayed in the file list.
CancelFilesUpload(IEnumerable<UploadFileInfo>)Cancels upload processes for specified files.
CancelFileUpload(UploadFileInfo)Cancels the upload operation for the specified file.
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.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ReloadAllFiles()Reloads all files whose upload operations were canceled.
ReloadFile(UploadFileInfo)Reloads the specified file if its upload process was canceled.
ReloadFiles(IEnumerable<UploadFileInfo>)Reloads specified files if their upload processes were canceled.
RemoveAllFiles()Clears the file list.
RemoveFile(UploadFileInfo)Removes the specified file from the file list.
RemoveFiles(IEnumerable<UploadFileInfo>)Removes 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 file list.
UploadFile(UploadFileInfo)Uploads the specified file.
UploadFiles(IEnumerable<UploadFileInfo>)Uploads specified files.

Events

NameDescription
FilesUploadingAllows you to upload selected files.
SelectedFilesChangedFires when the file list changes.

See Also

DxFileInput Class

DevExpress.Blazor Namespace