Search Results for

Show / Hide Table of Contents

# Class MvcUploader

Compatibility helper for the old MVC integration pattern built on top of the v5 upload service.

##### Inheritance

object
MvcUploader

##### Implements

IAjaxUploader
IDisposable

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: CuteWebUI

###### Assembly: AjaxUploader.dll

##### Syntax

    public class MvcUploader : IAjaxUploader, IDisposable

### Constructors

#### MvcUploader(HttpContext)

##### Declaration

    public MvcUploader(HttpContext context)

##### Parameters

Type | Name | Description
--- | --- | ---
HttpContext | context |

### Properties

#### AllowedFileExtensions

##### Declaration

    public string AllowedFileExtensions { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### AllowedFileMimeTypes

##### Declaration

    public string AllowedFileMimeTypes { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### AllowedFileRegExp

##### Declaration

    public string AllowedFileRegExp { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### AutoUseSystemTempFolder

##### Declaration

    public bool AutoUseSystemTempFolder { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ButtonOnClickScript

##### Declaration

    public string ButtonOnClickScript { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### CancelAllMsg

##### Declaration

    public string CancelAllMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### CancelButtonID

##### Declaration

    public string CancelButtonID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### CancelUploadMsg

##### Declaration

    public string CancelUploadMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### Context

##### Declaration

    public HttpContext Context { get; }

##### Property Value

Type | Description
--- | ---
HttpContext |

#### CurrentFileGuid

##### Declaration

    public Guid CurrentFileGuid { get; }

##### Property Value

Type | Description
--- | ---
Guid |

#### DialogAccept

##### Declaration

    public string DialogAccept { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### DialogFilter

##### Declaration

    public string DialogFilter { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### DropZoneID

##### Declaration

    public string DropZoneID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### EnableMimetypeChecking

##### Declaration

    public bool EnableMimetypeChecking { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### FileTooLargeMsg

##### Declaration

    public string FileTooLargeMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FileTypeNotSupportMsg

##### Declaration

    public string FileTypeNotSupportMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FlashUploadPage

##### Declaration

    public string FlashUploadPage { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FlashWarningImage

##### Declaration

    public string FlashWarningImage { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FormName

##### Declaration

    [Obsolete("Do not use .FormName , use .Name .", false)]
    public string FormName { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### InputboxCSSText

##### Declaration

    public string InputboxCSSText { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### InsertButtonID

##### Declaration

    public string InsertButtonID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### InsertText

##### Declaration

    public string InsertText { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### IsValidationRequest

##### Declaration

    public bool IsValidationRequest { get; }

##### Property Value

Type | Description
--- | ---
bool |

#### ManualStartUpload

##### Declaration

    public bool ManualStartUpload { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### MaxFilesLimit

##### Declaration

    public int MaxFilesLimit { get; set; }

##### Property Value

Type | Description
--- | ---
int |

#### MaxFilesLimitMsg

##### Declaration

    public string MaxFilesLimitMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### MaxSizeKB

##### Declaration

    public int MaxSizeKB { get; set; }

##### Property Value

Type | Description
--- | ---
int |

#### MultipleFilesUpload

##### Declaration

    public bool MultipleFilesUpload { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### Name

##### Declaration

    public string Name { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### NumFilesShowCancelAll

##### Declaration

    public int NumFilesShowCancelAll { get; set; }

##### Property Value

Type | Description
--- | ---
int |

#### PostBackEventReference

##### Declaration

    public string PostBackEventReference { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressBarBackgroundImage

##### Declaration

    public string ProgressBarBackgroundImage { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressBarBorderStyle

##### Declaration

    public string ProgressBarBorderStyle { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressBarColor

##### Declaration

    public string ProgressBarColor { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressBarHeight

##### Declaration

    public int ProgressBarHeight { get; set; }

##### Property Value

Type | Description
--- | ---
int |

#### ProgressBarStyle

##### Declaration

    public ProgressBarType ProgressBarStyle { get; set; }

##### Property Value

Type | Description
--- | ---
ProgressBarType |

#### ProgressCtrlID

##### Declaration

    public string ProgressCtrlID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressInfoStyle

##### Declaration

    public string ProgressInfoStyle { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressPanelWidth

##### Declaration

    public int ProgressPanelWidth { get; set; }

##### Property Value

Type | Description
--- | ---
int |

#### ProgressPicture

##### Declaration

    public string ProgressPicture { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressTextID

##### Declaration

    public string ProgressTextID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ProgressTextTemplate

##### Declaration

    public string ProgressTextTemplate { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### QueuePanelID

##### Declaration

    public string QueuePanelID { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ResourceHandler

##### Declaration

    public string ResourceHandler { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ScriptSource

##### Declaration

    public MvcUploaderScriptSource ScriptSource { get; set; }

##### Property Value

Type | Description
--- | ---
MvcUploaderScriptSource |

#### ShowFrameBrowseButton

##### Declaration

    public bool ShowFrameBrowseButton { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ShowProgressBar

##### Declaration

    public bool ShowProgressBar { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ShowProgressInfo

##### Declaration

    public bool ShowProgressInfo { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ShowQueueTable

##### Declaration

    public bool ShowQueueTable { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### TempDirectory

##### Declaration

    public string TempDirectory { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### UploadCursor

##### Declaration

    public UploadCursor UploadCursor { get; set; }

##### Property Value

Type | Description
--- | ---
UploadCursor |

#### UploadProcessingMsg

##### Declaration

    public string UploadProcessingMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### UploadType

##### Declaration

    public UploadType UploadType { get; set; }

##### Property Value

Type | Description
--- | ---
UploadType |

#### UploadTypePriority

##### Declaration

    public string UploadTypePriority { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### UploadUrl

##### Declaration

    public string UploadUrl { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### UploadingMsg

##### Declaration

    public string UploadingMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### WindowsDialogLimitMsg

##### Declaration

    public string WindowsDialogLimitMsg { get; set; }

##### Property Value

Type | Description
--- | ---
string |

### Methods

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### GetAdvancedOption(UploaderAdvancedOption)

##### Declaration

    public string GetAdvancedOption(UploaderAdvancedOption name)

##### Parameters

Type | Name | Description
--- | --- | ---
UploaderAdvancedOption | name |

##### Returns

Type | Description
--- | ---
string |

#### GetAttribute(string)

##### Declaration

    public string GetAttribute(string name)

##### Parameters

Type | Name | Description
--- | --- | ---
string | name |

##### Returns

Type | Description
--- | ---
string |

#### GetTempDirectory()

##### Declaration

    public string GetTempDirectory()

##### Returns

Type | Description
--- | ---
string |

#### GetUploadedFile(Guid)

##### Declaration

    public MvcUploadFile GetUploadedFile(Guid guid)

##### Parameters

Type | Name | Description
--- | --- | ---
Guid | guid |

##### Returns

Type | Description
--- | ---
MvcUploadFile |

#### GetUploaderProvider()

##### Declaration

    public UploaderProvider GetUploaderProvider()

##### Returns

Type | Description
--- | ---
UploaderProvider |

#### GetValidatingFile()

##### Declaration

    public MvcUploadFile GetValidatingFile()

##### Returns

Type | Description
--- | ---
MvcUploadFile |

#### PreProcessRequest()

##### Declaration

    public void PreProcessRequest()

#### Render()

##### Declaration

    public string Render()

##### Returns

Type | Description
--- | ---
string |

#### Render(TextWriter)

##### Declaration

    public void Render(TextWriter writer)

##### Parameters

Type | Name | Description
--- | --- | ---
TextWriter | writer |

#### SetAdvancedOption(UploaderAdvancedOption, string)

##### Declaration

    public void SetAdvancedOption(UploaderAdvancedOption name, string value)

##### Parameters

Type | Name | Description
--- | --- | ---
UploaderAdvancedOption | name |
string | value |

#### SetAttribute(string, string)

##### Declaration

    public void SetAttribute(string name, string value)

##### Parameters

Type | Name | Description
--- | --- | ---
string | name |
string | value |

#### WriteValidationError(string)

##### Declaration

    public void WriteValidationError(string errormsg)

##### Parameters

Type | Name | Description
--- | --- | ---
string | errormsg |

#### WriteValidationError(string, string)

##### Declaration

    public void WriteValidationError(string errormsg, string serverdata)

##### Parameters

Type | Name | Description
--- | --- | ---
string | errormsg |
string | serverdata |

#### WriteValidationOK()

##### Declaration

    public void WriteValidationOK()

#### WriteValidationOK(string)

##### Declaration

    public void WriteValidationOK(string serverdata)

##### Parameters

Type | Name | Description
--- | --- | ---
string | serverdata |

### Implements

IAjaxUploader
IDisposable