C# Class Moxiecode.Plupload.FileReference

Description of File.
Mostrar archivo Open project: neil-chen/NeilChen Class Usage Examples

Public Methods

Method Description
CancelUpload ( ) : void

Cancels uploading the current file.

FileReference ( string id, FileInfo info ) : System

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.

Protected Methods

Method Description
OnIOError ( ErrorEventArgs e ) : void
OnProgress ( ProgressEventArgs e ) : void
OnUploadChunkComplete ( UploadEventArgs e ) : void
OnUploadComplete ( UploadEventArgs e ) : void

Private Methods

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[]

Method Details

CancelUpload() public method

Cancels uploading the current file.
public CancelUpload ( ) : void
return void

FileReference() public method

Main constructor for the file reference.
public FileReference ( string id, FileInfo info ) : System
id string Unique file id for item.
info System.IO.FileInfo FileInfo that got returned from a file selection.
return System

OnIOError() protected method

protected OnIOError ( ErrorEventArgs e ) : void
e ErrorEventArgs
return void

OnProgress() protected method

protected OnProgress ( ProgressEventArgs e ) : void
e ProgressEventArgs
return void

OnUploadChunkComplete() protected method

protected OnUploadChunkComplete ( UploadEventArgs e ) : void
e UploadEventArgs
return void

OnUploadComplete() protected method

protected OnUploadComplete ( UploadEventArgs e ) : void
e UploadEventArgs
return void

Upload() public method

Uploads the file to the specific url and using the specified chunk_size.
public Upload ( string upload_url, string json_settings ) : void
upload_url string URL to upload to.
json_settings string
return void

UploadNextChunk() public method

Uploads the next chunk if there are more in queue.
public UploadNextChunk ( ) : bool
return bool