Class FileReference
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions.API
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents a reference to a file that is immediately uploaded.
public class FileReference
- Inheritance
-
FileReference
- Derived
- Inherited Members
Constructors
FileReference()
Initializes a new instance of the FileReference class.
protected FileReference()
Properties
FileName
Gets the file name.
public string? FileName { get; }
Property Value
Remarks
The value is only available when the reference is to a file selected by the user.
Size
Gets the file size in bytes.
public int? Size { get; }
Property Value
- int?
UploadPercentCompleted
Gets the upload percent completed.
public decimal UploadPercentCompleted { get; }
Property Value
UploadState
Gets the upload state.
public FileUploadState UploadState { get; }
Property Value
Url
Gets the file URL.
public string Url { get; }
Property Value
Value
Gets the value.
public string? Value { get; init; }
Property Value
Remarks
The value is null when the file selected by the user is not yet uploaded to the server. It becomes a GUID once the file is uploaded.
Methods
FromValue(string)
Creates a file reference from a value.
public static FileReference FromValue(string value)
Parameters
value
stringValue.
Returns
- FileReference
The file reference.
RetryUpload()
Retries to upload.
public void RetryUpload()
StartUpload()
Starts to upload.
[Obsolete("Use DeferredFileReference.StartUpload instead.")]
public void StartUpload()