C# Class Moxiecode.Plupload.FileReference

Description of File.
Afficher le fichier Open project: neil-chen/NeilChen Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnIOError ( ErrorEventArgs e ) : void
OnProgress ( ProgressEventArgs e ) : void
OnUploadChunkComplete ( UploadEventArgs e ) : void
OnUploadComplete ( UploadEventArgs e ) : void

Private Methods

Méthode 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 méthode

Cancels uploading the current file.
public CancelUpload ( ) : void
Résultat void

FileReference() public méthode

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.
Résultat System

OnIOError() protected méthode

protected OnIOError ( ErrorEventArgs e ) : void
e ErrorEventArgs
Résultat void

OnProgress() protected méthode

protected OnProgress ( ProgressEventArgs e ) : void
e ProgressEventArgs
Résultat void

OnUploadChunkComplete() protected méthode

protected OnUploadChunkComplete ( UploadEventArgs e ) : void
e UploadEventArgs
Résultat void

OnUploadComplete() protected méthode

protected OnUploadComplete ( UploadEventArgs e ) : void
e UploadEventArgs
Résultat void

Upload() public méthode

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
Résultat void

UploadNextChunk() public méthode

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