Krystalware
SlickUpload logo

IUploadStreamProvider Interface

A provider that can be called to get a Stream to which to write an UploadedFile.

Members

GetInputStream(UploadedFile)

Returns a Stream of the file data that was uploaded for the specified location info.

Parameters

Return Value

Stream – A Stream of the file data that was uploaded.

GetOutputStream(UploadedFile)

Returns a Stream to which to write the file as it is uploaded. The provider must store appropriate information in the file.LocationInfo property to allow it to implement the RemoveOutput and GetInputStream methods.

Parameters

Return Value

Stream – A Stream to which to write the UploadedFile.

RemoveOutput(UploadedFile)

Removes the output file or record for an upload. Should only be called by the SlickUpload framework. The stream returned by IUploadStreamProvider.UploadedFile) is guaranteed to have been closed before this method is called.

Parameters