Class UploadResult
Represents the server response returned after an upload, chunk operation, or validation-related failure.
Assembly: CoreUpload.dll
Syntax
public class UploadResult
Properties
ErrorMessage
Gets or sets the human-readable error message when the operation fails.
Declaration
public string? ErrorMessage { get; set; }
Property Value
FileGuid
Gets or sets the GUID assigned to the stored file when the operation creates or finalizes an upload.
Declaration
public Guid? FileGuid { get; set; }
Property Value
FileName
Gets or sets the original file name associated with the operation.
Declaration
public string? FileName { get; set; }
Property Value
FileSize
Gets or sets the stored file size in bytes.
Declaration
public long FileSize { get; set; }
Property Value
Success
Gets or sets a value indicating whether the operation succeeded.
Declaration
public bool Success { get; set; }
Property Value
Methods
Error(string)
Creates a failed upload result with the supplied error message.
Declaration
public static UploadResult Error(string message)
Parameters
| Type |
Name |
Description |
| string |
message |
|
Returns
Ok(Guid, string, long)
Creates a successful upload result.
Declaration
public static UploadResult Ok(Guid guid, string fileName, long fileSize)
Parameters
Returns