New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[EmbeddedSkin("Upload", typeof(RadAsyncUpload))]
[EmbeddedSkin("Upload", "Default", typeof(RadAsyncUpload))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadAsyncUpload))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadButton))]
[TelerikToolboxCategory("Upload")]
[ToolboxBitmap(typeof(RadAsyncUpload), "Toolbox.Icons.AsyncUpload.png")]
[RequiredScript(typeof(Core))]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(MaterialRipple))]
[ClientScriptResource("Telerik.Web.UI.RadAsyncUpload", "Telerik.Web.UI.AsyncUpload.RadAsyncUploadScripts.js")]
public class RadAsyncUpload : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl

Inheritance: objectControlWebControlRadWebControlRadAsyncUpload

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.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.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.BuildProfileTree(string, bool)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.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadAsyncUpload()

Properties

Gets or sets the allowed file extensions for uploading.

C#
[TypeConverter(typeof(ListConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public string[] AllowedFileExtensions { get; set; }
Property Value:

The default value is empty string array. In order to check for multiple file extensions you should set an array of strings containing the allowed file extensions for uploading.

Set this property to empty array of strings in order to prevent the file extension checking.

Example:
cs-api-definition
Dim allowedFileExtensions As String() = New String(2) {"zip", "doc", "config"}
RadAsyuncUpload1.AllowedFileExtensions = allowedFileExtensions

Gets or sets the allowed MIME types for uploading.

C#
[TypeConverter(typeof(ListConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public string[] AllowedMimeTypes { get; set; }
Property Value:

The default value is empty string array. In order to check for multiple mime types you should set an array of strings containing the allowed MIME types for uploading.

Set this property to string.Empty in order to prevent the mime type checking.

Example:
cs-api-definition
' For example you can Get these from your web.config file
Dim commaSeparatedMimeTypes As String = "application/octet-stream,application/msword,video/mpeg"

Dim allowedMimeTypes As String() = commaSeparatedMimeTypes.Split(",")
RadAsyncUpload1.AllowedMimeTypes = allowedMimeTypes

Gets the object that controls the Wai-Aria settings applied on the control's input element.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WaiAriaSettings AriaSettings { get; }

Specifies whether a new File Input should be automatically added upon selecting a file to upload.

C#
[ClientControlProperty]
[ClientPropertyName("_autoAddFileInputs")]
public bool AutoAddFileInputs { get; set; }

Gets or sets the size of the uploading chunks in bytes.

C#
[PersistenceMode(PersistenceMode.Attribute)]
public int ChunkSize { get; set; }
Property Value:

The default value is 2097152(2MB).

When FileApi upload module is used the selected files are uploading on chunks and the property set theirs size.

Gets or sets the control objects visibility.

C#
[Browsable(false)]
[Bindable(true)]
[Obsolete("This property is obsolete in RadAsyncUpload")]
public virtual ControlObjectsVisibility ControlObjectsVisibility { get; set; }
Property Value:

The control objects visibility.

The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()

C#
protected override string CssClassFormatString { get; }

Overrides: RadWebControl.CssClassFormatString

Example:
C#
protected override string CssClassFormatString
{
       get
       {
           return "RadDock RadDock_{0} rdWTitle rdWFooter";
       }
}

Gets or sets the selected culture. Localization strings will be loaded based on this value.

C#
public CultureInfo Culture { get; set; }
Property Value:

The culture.

Gets or sets whether the upload will be in chunks (2MB each) or the file will be uploaded with one request.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[ClientControlProperty]
[ClientPropertyName("_disableChunkUpload")]
public bool DisableChunkUpload { get; set; }
Property Value:

The DisableChunkUpload.

Gets or sets the drop zones for upload.

C#
[TypeConverter(typeof(ListConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public string[] DropZones { get; set; }

The values of the property should be a valid jQuery selectors. E.g. class name or Id of html element.

When set to true enables support for WAI-ARIA.

C#
[ClientControlProperty]
[ClientPropertyName("enableAriaSupport")]
public bool EnableAriaSupport { get; set; }

Gets or sets whether to fire the FileUploaded event and process the files if the Page is valid, after the server side validation events.

C#
[PersistenceMode(PersistenceMode.Attribute)]
public bool EnableCustomValidation { get; set; }

The control will fires its event and process the files if the Page is valid, after the server side validation events. If the Page is not valid the uploaded files are persisted between postbacks.

Gets or sets the value indicating whether the file input fields skinning will be enabled.

C#
[Browsable(true)]
[Bindable(true)]
[ClientPropertyName("enableFileInputSkinning")]
[ClientControlProperty]
public bool EnableFileInputSkinning { get; set; }
Property Value:

true when the file input skinning is enabled; otherwise false.

The <input type=file> DHTML elements are not skinnable by default. If the EnableFileInputSkinning is true some browsers can have strange behavior.

Gets or sets a value indicating if RadAsyncUpload should check the Telerik.Web.UI.WebResource handler existence in the application configuration file.

C#
public bool EnableHandlerDetection { get; set; }

The check is not performed when custom handler is used.

Specifies whether RadAsyncUpload displays an inline progress next to each file being uploaded.

C#
[ClientControlProperty]
[ClientPropertyName("_enableInlineProgress")]
public bool EnableInlineProgress { get; set; }
Property Value:

The default value is false

The InlineProgress is turned on by default. If you have RadProgressArea on the page both the area and the inline progress are going to be shown. In order to suppress the InlineProgress, consider setting the property to false.

Specifies whether RadAsyncUpload performs check for write permissions upon load

C#
public bool EnablePermissionsCheck { get; set; }
Property Value:

The default value is true

The permissions check is turned on by default. You should disable it if you plan to upload the files directly to the handler without using the temporary folder. If you still want to use temporary folder make sure that you have set the TemporyFilesFolder property to a folder that has write permissions for the

Gets the collection of FileFilter objects to be applied to the OpenFileDialog

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public FileFilterCollection FileFilters { get; }
Property Value:

A FileFilterCollection containing FileFilter object that define the filters applied to the OpenFileDialog

C#
protected FilterFormatter FilterFormatter { get; }

Gets or sets whether to render the file input.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[ClientControlProperty]
[ClientPropertyName("_hideFileInput")]
public bool HideFileInput { get; set; }

When HideFileInput is set to True, only the select button will be rendered.

Specifies the URL of the HTTPHandler from which the image will be served

C#
public string HttpHandlerUrl { get; set; }
Exceptions: ArgumentException

Gets or sets the initial count of file input fields, which will appear in RadAsyncUpload.

C#
[Browsable(true)]
[Bindable(true)]
[ClientPropertyName("initialFileInputsCount")]
[ClientControlProperty]
public int InitialFileInputsCount { get; set; }
Property Value:

The file inputs count which will be available at startup. The default value is 1.

Gets or sets the size of the file input field

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
[ClientPropertyName("inputSize")]
[ClientControlProperty]
public int InputSize { get; set; }
Property Value:

The default value is 23.

Used to customize the Navigation keyboard navigation functionality.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public KeyboardNavigationSettings KeyboardNavigationSettings { get; }

Gets the localization.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AsyncUploadStrings Localization { get; }
Property Value:

The localization.

Gets or sets a value indicating where RadAsyncUpload will look for its .resx localization files.

C#
public string LocalizationPath { get; set; }
Property Value:

The localization path.

Gets or sets whether the upload will start automatically after the files are selected.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[ClientControlProperty]
[ClientPropertyName("_manualUpload")]
public bool ManualUpload { get; set; }
Property Value:

The manual upload.

Gets or sets the maximum file input fields that can be added to the control.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
[ClientPropertyName("maxFileCount")]
[ClientControlProperty]
public int MaxFileInputsCount { get; set; }
Property Value:

The default value is 0 (unlimited).

Using this property you can limit the maximum number of file inputs which can be added to a RadAsyncUpload instance. MaxFileInputs count is only applicable when MultipleFileSelection is set to Disabled

Gets or sets the maximum file size allowed for uploading in bytes.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
[ClientControlProperty]
[ClientPropertyName("_maxFileSize")]
public int MaxFileSize { get; set; }
Property Value:

The default value is 0 (unlimited).

Set this property to 0 in order to prevent the file size checking.

Specifies whether RadAsyncUpload allows selecting multiple files in the File Selection dialog.

C#
[ClientControlProperty]
[ClientPropertyName("_multipleFileSelection")]
public MultipleFileSelection MultipleFileSelection { get; set; }
Property Value:

The default value is Disabled

Setting the MultipleFileSelection property to Automatic means that RadAsyncUpload will check the client's browser capabilities and if there is support for multiple file selection he will enable it. If there is no such support, the selection type would be still single.

Gets or sets the name of the client-side function which will be executed after a new file input is added to a RadAsyncUpload instance. The event cannot be cancelled

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("added")]
public string OnClientAdded { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed before a new file input is added to a RadAsyncUpload instance. This event can be cancelled.

C#
[Browsable(false)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("adding")]
protected string OnClientAdding { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed after a file has been dropped.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileDropped")]
public string OnClientFileDropped { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed after a file has been selected.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileSelected")]
public string OnClientFileSelected { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed after files have been selected. This event can be cancelled.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("filesSelected")]
public string OnClientFilesSelected { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed after all selected files have been uploaded

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("filesUploaded")]
public string OnClientFilesUploaded { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed when a file upload finishes successfully.k

C#
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileUploaded")]
public string OnClientFileUploaded { get; set; }
Property Value:

The default value is string.Empty.

If specified, the OnClientFileUploaded client-side event is called when file is uploaded successfully.

  • sender, the async upload client object;
  • eventArgs with one property:
    • get_fileName(), the name of the file that was uploaded.

This event cannot be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientFileUploaded(sender, eventArgs)<br />
{<br />
       var fileName = eventArgs.get_fileName();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadAsyncUpload ID="RadAsyncUpload1"<br />
runat="server"<br />
    <strong>OnClientFileUploaded="onClientFileUploaded"</strong>&gt;<br />
....<br />
&lt;/telerik:RadAsyncUpload&gt;</p>

Gets or sets the name of the client-side function which will be executed when a file upload ends unsuccessfully.

C#
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileUploadFailed")]
public string OnClientFileUploadFailed { get; set; }
Property Value:

The default value is string.Empty.

If specified, the OnClientFileUploadFailed client-side event is called when a file fails to upload. One can set the set_handled property to false which will force the async upload to throw an exception the error message to the JavaScript console.

  • sender, the async upload client object;
  • eventArgs with three properties:
    • get_message(), the error message containing the reason for the failed upload
    • get_handled(), gets a value indicating whether the developer will handle the error
    • set_handled(), sets a value indicating whether the developer will handle the error

This event cannot be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientFileUploadFailed(sender, eventArgs)<br />
{<br />
       var message = eventArgs.get_message();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadAsyncUpload ID="RadAsyncUpload1"<br />
runat="server"<br />
    <strong>OnClientFileUploadFailed="onClientFileUploadFailed"</strong>&gt;<br />
....<br />
&lt;/telerik:RadAsyncUpload&gt;</p>

Gets or sets the name of the client-side function which will be executed when a file upload starts.

C#
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileUploading")]
public string OnClientFileUploading { get; set; }
Property Value:

The default value is string.Empty.

If specified, the OnClientFileUploading client-side event is called whenever a file upload commences.

  • sender, the async upload client object;
  • eventArgs with one property:
    • get_fileName(), the name of the file being uploaded.

This event cannot be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientFileUploading(sender, eventArgs)<br />
{<br />
       var fileName = eventArgs.get_fileName();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadAsyncUpload ID="RadAsyncUpload1"<br />
runat="server"<br />
    <strong>OnClientFileUploading="onClientFileUploading"</strong>&gt;<br />
....<br />
&lt;/telerik:RadAsyncUpload&gt;</p>

Gets or sets the name of the client-side function which will be executed after a file input has been deleted from a RadAsyncUpload instance.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileUploadRemoved")]
public string OnClientFileUploadRemoved { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the name of the client-side function which will be executed before a file input is deleted from a RadAsyncUpload instance. The event can be cancelled.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("fileUploadRemoving")]
public string OnClientFileUploadRemoving { get; set; }
Property Value:

The default value is string.Empty.

If you want to cancel the deleting of the file input return false in the javascript handler.

Example:
cs-api-definition
&lt;radU:RadAsyncUpload OnClientFileUploadDeleting="myOnClientDeleting" ... /&gt;
&lt;script language="javascript"&gt;
function myOnClientDeleting()
{
args.set_cancel(prompt("Are you sure?"));
}
&lt;/script&gt;

Gets or sets the client progress updating.

C#
[Browsable(true)]
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("progressUpdating")]
public string OnClientProgressUpdating { get; set; }
Property Value:

The client progress updating.

Gets or sets the name of the client-side function which will be executed if the selected file has invalid extension

C#
[Bindable(true)]
[ClientControlEvent]
[ClientPropertyName("validationFailed")]
public string OnClientValidationFailed { get; set; }
Property Value:

The default value is string.Empty.

If specified, the onClientValidationFailed client-side event is called when a file has invalid extension or its size exceeds the maximum allowed size

  • sender, the async upload client object;
  • eventArgs with two properties:
    • get_fileName(), the name of the file that failed to upload.
    • get_fileInputField(), the file input field DOM element.

This event cannot be cancelled.

Example:
C#
<p>&lt;script type="text/javascript"&gt;<br />
function onClientValidationFailed(sender, eventArgs)<br />
{<br />
       var fileName = eventArgs.get_fileName();<br />
       var input = eventArgs.get_fileInputField();<br />
}<br />
&lt;/script&gt;</p>
<p>&lt;telerik:RadAsyncUpload ID="RadAsyncUpload1"<br />
runat="server"<br />
    <strong>OnClientValidationFailed="onClientValidationFailed"</strong>&gt;<br />
....<br />
&lt;/telerik:RadAsyncUpload&gt;</p>

Gets or sets whether the upload configuration to be persisted into ControlState(if the upload configuration is different than null).

C#
[Browsable(true)]
public bool PersistConfiguration { get; set; }
Property Value:

The default value is false.

Comma separated values - controls' ids. If the property is set the client state is updated in case some of the enumerated controls, triggered a postback.

C#
[TypeConverter(typeof(ListConverter))]
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public string[] PostbackTriggers { get; set; }
Property Value:

The default value is string.Empty.

Gets or sets the URL of the progress handler that takes care of the progress monitoring.

C#
[PersistenceMode(PersistenceMode.Attribute)]
[Bindable(true)]
public string ProgressHandlerUrl { get; set; }
Property Value:

The progress handler URL.

C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadWebControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the virtual path of the folder, where RadUpload will automatically save the valid files after the upload completes.

C#
[Browsable(true)]
[Bindable(true)]
public string TargetFolder { get; set; }
Property Value:

A string containing the virtual path of the folder where RadUpload will automatically save the valid files after the upload completes. The default value is string.Empty.

When set to string.Empty, the files must be saved manually to the desired location.

Sets how long temporary files should be kept before automatically deleting them. The property accepts TimeSpan values. The default value is 4 hours. More information regarding the TimeSpan structure can be found here - http://www.dotnetperls.com/timespan RadAsyncUpload1.TemporaryFileExpiration = New TimeSpan(2, 0, 0, 0, 0);

C#
public TimeSpan TemporaryFileExpiration { get; set; }

Note that when a postback occurs temporary files are either saved as permanent or removed. The expiration time is used only in cases when files are uploaded asynchronously, but a subsequent postback does not occur.

Path to a folder where RadAsyncUpload should save files temporarily until a postback occurs.

C#
public string TemporaryFolder { get; set; }

The ASP.NET process needs to have Write permissions for the specified folder. Also note that in Medium Trust scenarios this should point to a subfolder of the Application Path. Defaults to App_Data\RadUploadTemp subfolder of the Application Path.

Sets upload configuration that has additional information. The generic object can be obtained using the CreateUploadConfiguration <T> method, where T is custom class that implements IAsyncUploadConfiguration. The custom class can contain any sort of custom data.

C#
[Browsable(false)]
public IAsyncUploadConfiguration UploadConfiguration { get; set; }

Provides access to the valid files uploaded by the RadAsyncUpload instance.

C#
[Browsable(false)]
public UploadedFileCollection UploadedFiles { get; }
Property Value:

UploadedFileCollection containing all valid files uploaded using a RadAsyncUpload control.

Example:
cs-api-definition
For Each file As Telerik.WebControls.UploadedFile In RadAsyncUpload1.UploadedFiles
file.SaveAs(Path.Combine("c:\my files\", file.GetName()), True)
Next

Specify where the uploaded files should be positioned, below or above the current file input.

C#
[ClientControlProperty]
[ClientPropertyName("_uploadedFilesRendering")]
public UploadedFilesRendering UploadedFilesRendering { get; set; }
Property Value:

The default value is AboveFileInput

Setting the UploadedFilesRendering property to BelowFileInput means that RadAsyncUpload will render the uploaded files below the current file input. Otherwise the uploaded files will be rendered above the file input.

Gets or sets the upload request identifier.

C#
[Browsable(false)]
[ClientControlProperty]
[ClientPropertyName("_pageGUID")]
public string UploadRequestIdentifier { get; set; }
Property Value:

The upload request identifier.

If the value is IsNullOrEmpty, a NewGuid value is assigned.

Gets or sets whether to use application pool impersonation.

C#
[PersistenceMode(PersistenceMode.Attribute)]
public bool UseApplicationPoolImpersonation { get; set; }
Property Value:

The usage of application pool impersonation.

Methods

C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadWebControl.AddAttributesToRender(HtmlTextWriter)

C#
protected virtual bool CheckFileNameForInvalidChars(string fileName)
Parameters:fileNamestringReturns:

bool

C#
protected virtual void CheckForHandlerRegistration()

Creates an object of type T (that implements IAsyncUploadConfiguration) and populates all properties specified in the interface from this RadAsyncUpload instance. The user is then free to populate any additional properties.

C#
public T CreateDefaultUploadConfiguration<T>() where T : IAsyncUploadConfiguration, new()
Returns:

T

An object of type T populated with all properties specified in IAsyncUploadConfiguration

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeComponent(IScriptDescriptor)

C#
protected virtual void EnsureDefaultTemporaryFolderExists()
C#
protected virtual string GetPostBackTriggerID()
Returns:

string

C#
protected virtual bool IsClientStatePlayable()
Returns:

bool

C#
protected override void LoadControlState(object savedState)
Parameters:savedStateobject

Overrides: Control.LoadControlState(object)

Executed when post data is loaded from the request

C#
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters:postDataKeystringpostCollectionNameValueCollectionReturns:

bool

Overrides: RadWebControl.LoadPostData(string, NameValueCollection)

C#
protected virtual void OnFileUploaded(FileUploadedEventArgs e)
Parameters:eFileUploadedEventArgs
C#
protected override void OnInit(EventArgs e)
Parameters:eEventArgs

Overrides: RadWebControl.OnInit(EventArgs)

C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadWebControl.OnPreRender(EventArgs)

C#
protected virtual void PlayClientState(string clientStateValue)
Parameters:clientStateValuestring

Executed when post data changes should invoke a changed event

C#
protected override void RaisePostDataChangedEvent()

Overrides: RadWebControl.RaisePostDataChangedEvent()

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadWebControl.RenderContents(HtmlTextWriter)

Saves the client state data

C#
protected override string SaveClientState()
Returns:

string

Overrides: RadWebControl.SaveClientState()

C#
protected override object SaveControlState()
Returns:

object

Overrides: Control.SaveControlState()

C#
protected virtual void TestTemporaryFolderPermissions()
C#
protected virtual bool ValidateFileExtension(string fileExtension)
Parameters:fileExtensionstringReturns:

bool

Events

Occurs once for each uploaded file.

C#
public event FileUploadedEventHandler FileUploaded
In this article
DefinitionConstructorsRadAsyncUpload()PropertiesAllowedFileExtensionsAllowedMimeTypesAriaSettingsAutoAddFileInputsChunkSizeControlObjectsVisibilityCssClassFormatStringCultureDisableChunkUploadDropZonesEnableAriaSupportEnableCustomValidationEnableFileInputSkinningEnableHandlerDetectionEnableInlineProgressEnablePermissionsCheckFileFiltersFilterFormatterHideFileInputHttpHandlerUrlInitialFileInputsCountInputSizeKeyboardNavigationSettingsLocalizationLocalizationPathManualUploadMaxFileInputsCountMaxFileSizeMultipleFileSelectionOnClientAddedOnClientAddingOnClientFileDroppedOnClientFileSelectedOnClientFilesSelectedOnClientFilesUploadedOnClientFileUploadedOnClientFileUploadFailedOnClientFileUploadingOnClientFileUploadRemovedOnClientFileUploadRemovingOnClientProgressUpdatingOnClientValidationFailedPersistConfigurationPostbackTriggersProgressHandlerUrlSupportsRenderingModeTagKeyTargetFolderTemporaryFileExpirationTemporaryFolderUploadConfigurationUploadedFilesUploadedFilesRenderingUploadRequestIdentifierUseApplicationPoolImpersonationMethodsAddAttributesToRender(HtmlTextWriter)CheckFileNameForInvalidChars(string)CheckForHandlerRegistration()CreateDefaultUploadConfiguration<T>()DescribeComponent(IScriptDescriptor)EnsureDefaultTemporaryFolderExists()GetPostBackTriggerID()IsClientStatePlayable()LoadControlState(object)LoadPostData(string, NameValueCollection)OnFileUploaded(FileUploadedEventArgs)OnInit(EventArgs)OnPreRender(EventArgs)PlayClientState(string)RaisePostDataChangedEvent()RenderContents(HtmlTextWriter)SaveClientState()SaveControlState()TestTemporaryFolderPermissions()ValidateFileExtension(string)EventsFileUploaded
Not finding the help you need?
Contact Support