Method | Description | |
---|---|---|
CancelUpload ( ) : void |
Cancels uploading the current file.
|
|
FileReference ( string id, |
Main constructor for the file reference.
|
|
Upload ( string upload_url, string json_settings ) : void |
Uploads the file to the specific url and using the specified chunk_size.
|
|
UploadNextChunk ( ) : bool |
Uploads the next chunk if there are more in queue.
|
Method | Description | |
---|---|---|
OnIOError ( ErrorEventArgs e ) : void | ||
OnProgress ( |
||
OnUploadChunkComplete ( |
||
OnUploadComplete ( |
Method | Description | |
---|---|---|
Debug ( string msg ) : void | ||
DisposeStreams ( ) : void | ||
ExtractResponse ( object state ) : void | ||
ReadByteRange ( byte buffer, long position, int offset, int count ) : int | ||
RequestStreamCallback ( IAsyncResult ar ) : void | ||
ResizeImage ( Stream image_stream, int width, int height, int quality, ImageType type ) : Stream | ||
ResponseCallback ( IAsyncResult ar ) : void | ||
StrToByteArray ( string str ) : byte[] |
public FileReference ( string id, |
||
id | string | Unique file id for item. |
info | FileInfo that got returned from a file selection. | |
return | System |
protected OnIOError ( ErrorEventArgs e ) : void | ||
e | ErrorEventArgs | |
return | void |
protected OnProgress ( |
||
e | ||
return | void |
protected OnUploadChunkComplete ( |
||
e | ||
return | void |
protected OnUploadComplete ( |
||
e | ||
return | void |
public Upload ( string upload_url, string json_settings ) : void | ||
upload_url | string | URL to upload to. |
json_settings | string | |
return | void |