Class MvcUploadFile
Represents an uploaded file returned by the legacy MVC integration helpers.
Inherited Members
Namespace: CuteWebUI
Assembly: AjaxUploader.dll
Syntax
public class MvcUploadFile
Properties
FileGuid
Gets the upload GUID.
Declaration
public Guid FileGuid { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
FileName
Gets the original 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 |