Krystalware
SlickUpload logo

UploadStatus Class

Contains information about the current status of an upload. Properties are updated in real time as the upload progresses.

Members

AllErrors – Exception[]

Returns an array containing all the exceptions that occured during a request, or null if none occurred.

ContentLength – Int64

Gets the length of the entire upload data.

CurrentFileName – String

Returns the file name of the file currently being processed.

Deserialize(String)

Deserializes a string generated by UploadStatus.Serialize into an UploadStatus instance.

Parameters

  • value (String) – The string to deserialize.

Return Value

UploadStatus – An UploadStatus instance.

ErrorMessage – String

Returns the error message associated with this upload.

GetUploadedFiles()

Returns the collection of files uploaded during this request context.

Return Value

ReadOnlyCollection<UploadedFile> – The collection of files uploaded during this request context.

Position – Int64

Gets the current position in the upload.

PostProcessingStatus – Dictionary<String, String>

Returns the current postprocessing status.

Reason – UploadTerminationReason

Returns the reason the upload was terminated, or UploadTerminationReason.NotTerminated if the upload wasn't terminated.

Serialize()

Returns this UploadStatus instance serialized into a string.

Return Value

String – The serialized string.

Start – DateTime

Returns a DateTime representing the moment when the upload started.

State – UploadState

Returns a the current state of the upload.

UpdatePostProcessStatus(Dictionary<String, String>, Boolean)

Updates the postprocessing status with the specified status values and sets the completion state.

Parameters

  • status (Dictionary<String, String>) – A dictionary containing the current status values.
  • isComplete (Boolean) – A boolean that specifies whether postprocessing is complete.

UploadId – String

Returns the unique upload id for this upload.

UploadInformation – String

Returns an optional string of additional information passed along with the upload.