Метод | Описание | |
---|---|---|
CancelUpload ( string fileName ) : void |
Cancel the upload and delete the TEMP file
|
|
GetFileList ( ) : IEnumerable |
Returns a list of the network files
|
|
GetFileStream ( string fileName, string path ) : Stream |
Get a filestream for a local file on the server
|
|
NetworkUploadService ( string uploadLocation, string tempFolderName ) : System |
Create a new instance of the network upload service.
|
|
StoreFileAdvanced ( string fileName, string path, Stream stream, string parameters, bool firstChunk, bool lastChunk ) : void |
Stores the file advanced.
|
|
StoreFileAdvanced ( string fileName, string path, byte data, int dataLength, string parameters, bool firstChunk, bool lastChunk ) : void |
Receive a chunk of data and store it on disk
|
Метод | Описание | |
---|---|---|
DeleteUploadedFile ( string fileName ) : void |
Delete an uploaded file
|
|
FinishedFileUpload ( string fileName, string parameters ) : void |
Do your own stuff here when the file is finished uploading
|
Метод | Описание | |
---|---|---|
SaveFile ( Stream stream, |
Saves the file.
|
|
StoreFile ( string fileName, string path, string parameters, bool firstChunk, bool lastChunk, Action |
Stores the file using a generic store action for working with a filestream
|
public CancelUpload ( string fileName ) : void | ||
fileName | string | Name of the file. |
Результат | void |
protected DeleteUploadedFile ( string fileName ) : void | ||
fileName | string | Name of the file. |
Результат | void |
protected FinishedFileUpload ( string fileName, string parameters ) : void | ||
fileName | string | Name of the file. |
parameters | string | The parameters. |
Результат | void |
public GetFileStream ( string fileName, string path ) : Stream | ||
fileName | string | The name of the file to stream back |
path | string | The path |
Результат | Stream |
public NetworkUploadService ( string uploadLocation, string tempFolderName ) : System | ||
uploadLocation | string | The location to store files locally |
tempFolderName | string | A temporary folder name to use for upload transfer |
Результат | System |
public StoreFileAdvanced ( string fileName, string path, Stream stream, string parameters, bool firstChunk, bool lastChunk ) : void | ||
fileName | string | Name of the file. |
path | string | path to save to |
stream | Stream | The stream. |
parameters | string | The parameters. |
firstChunk | bool | if set to |
lastChunk | bool | if set to |
Результат | void |
public StoreFileAdvanced ( string fileName, string path, byte data, int dataLength, string parameters, bool firstChunk, bool lastChunk ) : void | ||
fileName | string | Name of the file. |
path | string | the path to store the file |
data | byte | The file's data. |
dataLength | int | Length of the data. |
parameters | string | The parameters. |
firstChunk | bool | if set to |
lastChunk | bool | if set to |
Результат | void |