Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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. |
return | void |
protected DeleteUploadedFile ( string fileName ) : void | ||
fileName | string | Name of the file. |
return | void |
protected FinishedFileUpload ( string fileName, string parameters ) : void | ||
fileName | string | Name of the file. |
parameters | string | The parameters. |
return | void |
public GetFileStream ( string fileName, string path ) : Stream | ||
fileName | string | The name of the file to stream back |
path | string | The path |
return | 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 |
return | 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 |
return | 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 |
return | void |