Class UploaderEventArgs
Legacy event arguments describing an uploaded file and its provider operations.
Inherited Members
Namespace: CuteWebUI
Assembly: AjaxUploader.dll
Syntax
public class UploaderEventArgs
Constructors
UploaderEventArgs(UploaderBase, Guid)
Declaration
public UploaderEventArgs(UploaderBase uploader, Guid guid)
Parameters
| Type | Name | Description |
|---|---|---|
| UploaderBase | uploader | |
| Guid | guid |
UploaderEventArgs(UploaderBase, Guid, string)
Declaration
public UploaderEventArgs(UploaderBase uploader, Guid guid, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| UploaderBase | uploader | |
| Guid | guid | |
| string | filename |
UploaderEventArgs(UploaderBase, Guid, string, int)
Declaration
public UploaderEventArgs(UploaderBase uploader, Guid guid, string filename, int fileSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UploaderBase | uploader | |
| Guid | guid | |
| string | filename | |
| int | fileSize |
Properties
ClientData
Gets or sets legacy client data associated with the event.
Declaration
public string ClientData { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FileGuid
Gets the upload GUID.
Declaration
public Guid FileGuid { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
FileName
Gets the uploaded file name.
Declaration
public string FileName { get; }
Property Value
| Type | Description |
|---|---|
| string |
FileSize
Gets the file size in bytes.
Declaration
public int FileSize { get; }
Property Value
| Type | Description |
|---|---|
| int |
ProviderSupportFS
Gets whether the provider exposes file-system paths.
Declaration
public bool ProviderSupportFS { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CopyTo(string)
Copies the uploaded file to a new file-system path.
Declaration
public void CopyTo(string newpath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | newpath |
Delete()
Deletes the uploaded file.
Declaration
public void Delete()
GetTempFilePath()
Gets the temporary file path when supported by the provider.
Declaration
public string GetTempFilePath()
Returns
| Type | Description |
|---|---|
| string |
MoveTo(string)
Moves the uploaded file to a new file-system path.
Declaration
public void MoveTo(string newpath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | newpath |
OpenStream()
Opens a readable stream for the uploaded file.
Declaration
public Stream OpenStream()
Returns
| Type | Description |
|---|---|
| Stream |
Persist()
Marks the uploaded file as persisted.
Declaration
[Obsolete("This property is not used any more. A file should be marked as persisted after validation.", false)]
public void Persist()