AjaxUploader
Search Results for

    Show / Hide Table of Contents

    Class UploaderBase

    Core legacy uploader compatibility control built on top of AjaxFileUpload.

    Inheritance
    object
    Control
    WebControl
    AjaxFileUpload
    UploaderBase
    UploadFileBase
    Implements
    IComponent
    IDisposable
    IParserAccessor
    IUrlResolutionService
    IDataBindingsAccessor
    IControlBuilderAccessor
    IControlDesignerAccessor
    IExpressionsAccessor
    IAttributeAccessor
    IPostBackDataHandler
    IAjaxUploader
    Inherited Members
    AjaxFileUpload.MaxSize
    AjaxFileUpload.MinSize
    AjaxFileUpload.Extensions
    AjaxFileUpload.AllowedMimeTypes
    AjaxFileUpload.MaxFiles
    AjaxFileUpload.Chunked
    AjaxFileUpload.AutoUpload
    AjaxFileUpload.Multiple
    AjaxFileUpload.ButtonText
    AjaxFileUpload.DropZone
    AjaxFileUpload.ShowProgress
    AjaxFileUpload.ShowQueue
    AjaxFileUpload.UploadUrl
    AjaxFileUpload.ChunkSize
    AjaxFileUpload.Paste
    AjaxFileUpload.ShowThumbnails
    AjaxFileUpload.FullPageDrop
    AjaxFileUpload.FolderDrop
    AjaxFileUpload.Concurrent
    AjaxFileUpload.MaxCount
    AjaxFileUpload.DetectDuplicates
    AjaxFileUpload.ValidateMimeByMagic
    AjaxFileUpload.DuplicateHashAlgorithm
    AjaxFileUpload.Crop
    AjaxFileUpload.CropAspectRatio
    AjaxFileUpload.ResizeMaxWidth
    AjaxFileUpload.ResizeMaxHeight
    AjaxFileUpload.ResizeQuality
    AjaxFileUpload.ResizeFormat
    AjaxFileUpload.ImageResize
    AjaxFileUpload.AutoOrient
    AjaxFileUpload.Gallery
    AjaxFileUpload.Inline
    AjaxFileUpload.DropOverlay
    AjaxFileUpload.DropOverlayText
    AjaxFileUpload.Sortable
    AjaxFileUpload.WithCredentials
    AjaxFileUpload.MinWidth
    AjaxFileUpload.MinHeight
    AjaxFileUpload.MaxWidth
    AjaxFileUpload.MaxHeight
    AjaxFileUpload.OnClientSelect
    AjaxFileUpload.OnClientProgress
    AjaxFileUpload.OnClientComplete
    AjaxFileUpload.OnClientError
    AjaxFileUpload.OnClientTaskComplete
    AjaxFileUpload.OnClientTaskError
    AjaxFileUpload.MaxRetries
    AjaxFileUpload.RetryDelay
    AjaxFileUpload.EnableResume
    AjaxFileUpload.EnableAntiforgery
    AjaxFileUpload.EnableImageDimensions
    AjaxFileUpload.EnableLightbox
    AjaxFileUpload.AllowMultiple
    AjaxFileUpload.AllowedExtensions
    AjaxFileUpload.MaxFileSize
    AjaxFileUpload.MinFileSize
    AjaxFileUpload.EnableChunkedUpload
    AjaxFileUpload.EnableDropZone
    AjaxFileUpload.EnablePaste
    AjaxFileUpload.EnableDuplicateCheck
    AjaxFileUpload.EnableExifOrient
    AjaxFileUpload.EnableImageCrop
    AjaxFileUpload.EnableImageResize
    AjaxFileUpload.EnableImagePreview
    AjaxFileUpload.EnableMimeCheck
    AjaxFileUpload.ConcurrentUploads
    AjaxFileUpload.ParallelChunks
    AjaxFileUpload.MaxFileCount
    AjaxFileUpload.ImageResizeWidth
    AjaxFileUpload.ImageResizeHeight
    AjaxFileUpload.MinImageWidth
    AjaxFileUpload.MinImageHeight
    AjaxFileUpload.MaxImageWidth
    AjaxFileUpload.MaxImageHeight
    AjaxFileUpload.OnClientFileSelected
    AjaxFileUpload.OnClientUploadComplete
    AjaxFileUpload.UploadedFileGuids
    AjaxFileUpload.Render(HtmlTextWriter)
    AjaxFileUpload.LoadPostData(string, NameValueCollection)
    AjaxFileUpload.RaisePostDataChangedEvent()
    WebControl.AddAttributesToRender(HtmlTextWriter)
    WebControl.ApplyStyle(Style)
    WebControl.CopyBaseAttributes(WebControl)
    WebControl.CreateControlStyle()
    WebControl.LoadViewState(object)
    WebControl.TrackViewState()
    WebControl.MergeStyle(Style)
    WebControl.RenderBeginTag(HtmlTextWriter)
    WebControl.RenderEndTag(HtmlTextWriter)
    WebControl.RenderContents(HtmlTextWriter)
    WebControl.SaveViewState()
    WebControl.AccessKey
    WebControl.Attributes
    WebControl.BackColor
    WebControl.BorderColor
    WebControl.BorderWidth
    WebControl.BorderStyle
    WebControl.ControlStyle
    WebControl.ControlStyleCreated
    WebControl.CssClass
    WebControl.DisabledCssClass
    WebControl.Style
    WebControl.Enabled
    WebControl.EnableTheming
    WebControl.Font
    WebControl.ForeColor
    WebControl.HasAttributes
    WebControl.Height
    WebControl.IsEnabled
    WebControl.SupportsDisabledAttribute
    WebControl.SkinID
    WebControl.TabIndex
    WebControl.TagKey
    WebControl.TagName
    WebControl.ToolTip
    WebControl.Width
    Control.ResolveAdapter()
    Control.HasEvents()
    Control.GetRouteUrl(object)
    Control.GetRouteUrl(string, object)
    Control.GetRouteUrl(RouteValueDictionary)
    Control.GetRouteUrl(string, RouteValueDictionary)
    Control.GetUniqueIDRelativeTo(Control)
    Control.ApplyStyleSheetSkin(Page)
    Control.OnDataBinding(EventArgs)
    Control.DataBind()
    Control.DataBind(bool)
    Control.DataBindChildren()
    Control.AddParsedSubObject(object)
    Control.EnsureID()
    Control.OnInit(EventArgs)
    Control.ClearChildState()
    Control.ClearChildControlState()
    Control.ClearChildViewState()
    Control.ClearEffectiveClientIDMode()
    Control.ClearCachedClientID()
    Control.Focus()
    Control.LoadControlState(object)
    Control.MapPathSecure(string)
    Control.OpenFile(string)
    Control.OnLoad(EventArgs)
    Control.BuildProfileTree(string, bool)
    Control.SaveControlState()
    Control.RenderChildren(HtmlTextWriter)
    Control.RenderControl(HtmlTextWriter)
    Control.RenderControl(HtmlTextWriter, ControlAdapter)
    Control.OnUnload(EventArgs)
    Control.Dispose()
    Control.RaiseBubbleEvent(object, EventArgs)
    Control.OnBubbleEvent(object, EventArgs)
    Control.AddedControl(Control, int)
    Control.CreateControlCollection()
    Control.CreateChildControls()
    Control.ResolveUrl(string)
    Control.ResolveClientUrl(string)
    Control.FindControl(string)
    Control.FindControl(string, int)
    Control.GetDesignModeState()
    Control.HasControls()
    Control.IsLiteralContent()
    Control.EnsureChildControls()
    Control.RemovedControl(Control)
    Control.SetDesignModeState(IDictionary)
    Control.SetRenderMethodDelegate(RenderMethod)
    Control.ClientIDMode
    Control.ClientID
    Control.ClientIDSeparator
    Control.Context
    Control.Adapter
    Control.DesignMode
    Control.Events
    Control.ID
    Control.IsChildControlStateCleared
    Control.EnableViewState
    Control.ViewStateMode
    Control.IsViewStateEnabled
    Control.NamingContainer
    Control.IdSeparator
    Control.LoadViewStateByID
    Control.Page
    Control.RenderingCompatibility
    Control.TemplateControl
    Control.Parent
    Control.TemplateSourceDirectory
    Control.AppRelativeTemplateSourceDirectory
    Control.Site
    Control.Visible
    Control.UniqueID
    Control.HasChildViewState
    Control.Controls
    Control.ValidateRequestMode
    Control.ViewState
    Control.ViewStateIgnoresCase
    Control.ChildControlsCreated
    Control.IsTrackingViewState
    Control.Disposed
    Control.DataBinding
    Control.Init
    Control.Load
    Control.PreRender
    Control.Unload
    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 UploaderBase : AjaxFileUpload, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackDataHandler, IAjaxUploader

    Constructors

    UploaderBase()

    Initializes a new instance of the UploaderBase class.

    Declaration
    public UploaderBase()

    Properties

    AutoUseSystemTempFolder

    Gets or sets whether the legacy control should prefer the system temporary folder.

    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

    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

    FileTooLargeMsg

    Declaration
    public string FileTooLargeMsg { get; set; }
    Property Value
    Type Description
    string

    FileTypeNotSupportMsg

    Declaration
    public string FileTypeNotSupportMsg { get; set; }
    Property Value
    Type Description
    string

    FlashLoadMode

    Declaration
    public bool FlashLoadMode { get; set; }
    Property Value
    Type Description
    bool

    FlashUploadPage

    Declaration
    public string FlashUploadPage { get; set; }
    Property Value
    Type Description
    string

    FlashWarningImage

    Declaration
    public string FlashWarningImage { 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

    Gets or sets the browse button caption shown by the legacy uploader.

    Declaration
    public string InsertText { get; set; }
    Property Value
    Type Description
    string

    ManualStartUpload

    Gets or sets whether uploads must be started manually.

    Declaration
    public bool ManualStartUpload { get; set; }
    Property Value
    Type Description
    bool

    MaxFilesLimit

    Gets or sets the legacy maximum file count. A value of -1 means unlimited.

    Declaration
    public int MaxFilesLimit { get; set; }
    Property Value
    Type Description
    int

    MaxFilesLimitMsg

    Declaration
    public string MaxFilesLimitMsg { get; set; }
    Property Value
    Type Description
    string

    MultipleFilesUpload

    Gets or sets whether the control allows multiple files to be selected.

    Declaration
    public bool MultipleFilesUpload { get; set; }
    Property Value
    Type Description
    bool

    NumFilesShowCancelAll

    Declaration
    public int NumFilesShowCancelAll { get; set; }
    Property Value
    Type Description
    int

    NumFilesShowQueueUI

    Declaration
    public int NumFilesShowQueueUI { get; set; }
    Property Value
    Type Description
    int

    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

    ShowFrameBrowseButton

    Declaration
    public bool ShowFrameBrowseButton { get; set; }
    Property Value
    Type Description
    bool

    ShowProgressBar

    Gets or sets whether the progress bar area is displayed.

    Declaration
    public bool ShowProgressBar { get; set; }
    Property Value
    Type Description
    bool

    ShowProgressInfo

    Declaration
    public bool ShowProgressInfo { get; set; }
    Property Value
    Type Description
    bool

    ShowQueueTable

    Gets or sets whether the queue table is displayed.

    Declaration
    public bool ShowQueueTable { get; set; }
    Property Value
    Type Description
    bool

    TempDirectory

    Gets or sets the temporary upload directory used by the compatibility layer.

    Declaration
    public string TempDirectory { get; set; }
    Property Value
    Type Description
    string

    UploadAddonButtonImage

    Declaration
    public string UploadAddonButtonImage { get; set; }
    Property Value
    Type Description
    string

    UploadAddonButtonMode

    Declaration
    public UploadAddonButtonMode UploadAddonButtonMode { get; set; }
    Property Value
    Type Description
    UploadAddonButtonMode

    UploadAddonButtonShowText

    Declaration
    public bool UploadAddonButtonShowText { get; set; }
    Property Value
    Type Description
    bool

    UploadAddonWarningImage

    Declaration
    public string UploadAddonWarningImage { 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

    UploaderDebug

    Declaration
    public string UploaderDebug { get; set; }
    Property Value
    Type Description
    string

    UploadingMsg

    Declaration
    public string UploadingMsg { get; set; }
    Property Value
    Type Description
    string

    ValidateOption

    Gets the legacy validation settings object.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public UploaderValidateOption ValidateOption { get; }
    Property Value
    Type Description
    UploaderValidateOption

    WindowsDialogLimitMsg

    Declaration
    public string WindowsDialogLimitMsg { get; set; }
    Property Value
    Type Description
    string

    Methods

    CheckPostBackData()

    Checks legacy postback data. This compatibility implementation is kept for API parity.

    Declaration
    public void CheckPostBackData()

    GetAdvancedOption(UploaderAdvancedOption)

    Returns the stored value for a legacy advanced option flag.

    Declaration
    public string GetAdvancedOption(UploaderAdvancedOption name)
    Parameters
    Type Name Description
    UploaderAdvancedOption name
    Returns
    Type Description
    string

    GetBrowserType()

    Gets the current browser name from the active HTTP request.

    Declaration
    public string GetBrowserType()
    Returns
    Type Description
    string

    GetBrowserVersion()

    Gets the current browser version from the active HTTP request.

    Declaration
    public decimal GetBrowserVersion()
    Returns
    Type Description
    decimal

    GetTempDirectory()

    Gets the resolved temporary upload directory.

    Declaration
    public string GetTempDirectory()
    Returns
    Type Description
    string

    GetUploadedFile(Guid)

    Resolves an uploaded file by GUID and wraps it in the legacy MVC helper type.

    Declaration
    public MvcUploadFile GetUploadedFile(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    MvcUploadFile

    GetUploaderProvider()

    Creates a legacy provider wrapper for accessing uploaded files.

    Declaration
    public UploaderProvider GetUploaderProvider()
    Returns
    Type Description
    UploaderProvider

    Impersonate()

    Returns a disposable impersonation scope placeholder kept for compatibility.

    Declaration
    public IDisposable Impersonate()
    Returns
    Type Description
    IDisposable

    OnPreRender(EventArgs)

    Raises the PreRender event.

    Declaration
    protected override void OnPreRender(EventArgs e)
    Parameters
    Type Name Description
    EventArgs e

    An EventArgs object that contains the event data.

    Overrides
    AjaxFileUpload.OnPreRender(EventArgs)

    RaiseLegacyFileUploaded(Guid, string, int)

    Declaration
    protected void RaiseLegacyFileUploaded(Guid guid, string fileName, int fileSize)
    Parameters
    Type Name Description
    Guid guid
    string fileName
    int fileSize

    RaiseLegacyUploadCompleted(IEnumerable<Guid>)

    Declaration
    protected void RaiseLegacyUploadCompleted(IEnumerable<Guid> guids)
    Parameters
    Type Name Description
    IEnumerable<Guid> guids

    SetAdvancedOption(UploaderAdvancedOption, string)

    Stores a legacy advanced option flag value.

    Declaration
    public void SetAdvancedOption(UploaderAdvancedOption name, string value)
    Parameters
    Type Name Description
    UploaderAdvancedOption name
    string value

    SetValidationServerData(string)

    Stores custom validation data that is later exposed through ClientData.

    Declaration
    public void SetValidationServerData(string data)
    Parameters
    Type Name Description
    string data

    Upload(int, string, Stream)

    Uploads a file stream through the v5 backend and raises the legacy events.

    Declaration
    public void Upload(int filesize, string filename, Stream stream)
    Parameters
    Type Name Description
    int filesize
    string filename
    Stream stream

    Upload(int, string, string)

    Uploads a temporary file path through the v5 backend and raises the legacy events.

    Declaration
    public void Upload(int filesize, string filename, string temppath)
    Parameters
    Type Name Description
    int filesize
    string filename
    string temppath

    Events

    FileUploaded

    Occurs after an individual file has uploaded successfully.

    Declaration
    public event UploaderEventHandler FileUploaded
    Event Type
    Type Description
    UploaderEventHandler

    FileValidating

    Occurs before a file is accepted by the server-side validation pipeline.

    Declaration
    public event UploaderEventHandler FileValidating
    Event Type
    Type Description
    UploaderEventHandler

    UploadCompleted

    Occurs after the current batch of uploaded files has completed.

    Declaration
    public event UploaderBatchEventHandler UploadCompleted
    Event Type
    Type Description
    UploaderBatchEventHandler

    Implements

    IComponent
    IDisposable
    IParserAccessor
    IUrlResolutionService
    IDataBindingsAccessor
    IControlBuilderAccessor
    IControlDesignerAccessor
    IExpressionsAccessor
    IAttributeAccessor
    IPostBackDataHandler
    IAjaxUploader
    In this article
    Back to top AjaxUploader 5.0 API Reference