Class FilesPropModel
Defines the basic file properties for preloaded files in the SfUploader component.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class FilesPropModel : Object
Remarks
This class represents the essential properties of files that are preloaded in the uploader component, typically representing files that have already been uploaded to the server and should be displayed in the file list when the component initializes. These properties are the minimum required information needed to display and manage preloaded files in the uploader interface.
Constructors
FilesPropModel()
Declaration
public FilesPropModel()
Properties
Name
Gets or sets the name of the file including its extension.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the complete file name, or an empty string if not specified. |
Remarks
This property specifies the display name of the preloaded file, including the file extension. The file name is used for display purposes in the file list and should match the actual file name as stored on the server. This is a required property for preloaded files to ensure proper identification and display in the uploader interface.
Size
Gets or sets the size of the file in bytes.
Declaration
public double Size { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the file size in bytes. The default value is 0. |
Remarks
This property specifies the size of the preloaded file in bytes. The file size information is used for display purposes in the file list and for validation against size restrictions. This is a required property for preloaded files to provide complete file information to users and enable proper file management functionality.
Type
Gets or sets the MIME type of the file.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the file's MIME type (e.g., "image/jpeg", "application/pdf"), or an empty string if not specified. |
Remarks
This property specifies the MIME type of the preloaded file, which indicates the file's content type and format. The type information is used for file validation, proper handling, and display of appropriate file icons in the uploader interface. This is a required property for preloaded files to ensure proper file type recognition and processing.