Skip to main content
All docs
V24.1

DxFileInput Members

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

Constructors

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

Properties

Name Description
AcceptedFileTypes Specifies MIME types users can add to the file list.
AllowCancel Specifies whether users can cancel upload operations.
AllowedFileExtensions Specifies file extensions that the File Input component can upload.
AllowMultiFileUpload Specifies whether users can add multiple files to the file list simultaneously.
CssClass Assign a CSS class to the component. Inherited from DxComponentBase.
ExternalDropZoneCssSelector Specifies the CSS selector of a container or HTML element where users can drop files.
ExternalDropZoneDragOverCssClass Assign a CSS class to the drop zone when users drag files over it.
ExternalSelectButtonCssSelector Specifies the CSS selector of a button or an HTML element that invokes the Open dialog.
Id Specifies the component’s unique identifier. Inherited from DxComponentBase.
MaxFileCount Specifies the maximum number of files that users can add to the file list.
MaxFileSize Specifies the maximum file size in bytes.
MinFileSize Specifies the minimum file size in bytes.
SelectButtonText Specifies the caption of the built-in select button.
ShowFileList Specifies whether to show the file list.
ShowSelectButton Specifies whether to show the built-in select button that invokes the Open dialog.
UploadMode Specifies when the File Input component starts upload operations.
Visible Specifies whether the component is visible.

Methods

Name Description
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) 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.
ReferenceEquals(Object, Object) static Determines 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.
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

Name Description
FilesUploading Allows you to upload selected files.
SelectedFilesChanged Fires when the file list changes.
See Also