SlickUpload

FileUploadStreamProvider Class

An IUploadStreamProvider that writes to files.

Members

ExistingAction
Enumeration of the possible actions to take when trying to upload to a file that exists.
FileNameMethod
Enumeration of the methods to use when generating a filename.
FileUploadStreamProvider (UploadStreamProviderElement)
Creates a new instance of the MemoryUploadStreamProvider class with the specified configuration settings.

Parameters

CloseWriteStream (UploadedFile, Stream, Boolean)

Parameters

ConvertToAbsolutePath (String)
Returns the absolute path for a relative file name.

Parameters

  • fileName (String) – The relative file name.

Return Value

  • String The absolute path.
GetReadStream (UploadedFile)
Overridden.

Parameters

Return Value

GetRenameSequence (String)
Returns an enumerable sequence that represents the renaming sequence for the specified filename. This sequence will be iterated until it generates a filename that doesn't currently exist to find a valid filename.

Parameters

  • fileName (String) – The filename for which to create the rename sequence.

Return Value

  • IEnumerable<String> – An enumerable sequence that represents the renaming sequence for the specified.
GetServerFileName (UploadedFile)
Returns the server file name to use for a given UploadedFile.

Parameters

Return Value

  • String The generated file name.
GetWriteStream (UploadedFile)
Overridden.

Parameters

Return Value

RemoveOutput (UploadedFile)
Overridden.

Parameters