We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Assigning name to the input element?

Thread ID:

Created:

Updated:

Platform:

Replies:

146234 Jul 26,2019 09:09 PM UTC Jul 29,2019 02:33 PM UTC ASP.NET MVC - EJ 2 1
loading
Tags: Uploader
John Stemper
Asked On July 26, 2019 09:56 PM UTC

Using the Form variation of the uploader control the documentation specifies that the name attribute must be assigned a name but the documentation does not seem to give an example of how to accomplish that.  How do I specifically assign a name to the uploader control?

My Razor code is  @Html.EJS().Uploader("UploadFiles").Uploading("onFileUpload").AutoUpload(false).Render()

Narayanasamy Panneer Selvam [Syncfusion]
Replied On July 29, 2019 02:33 PM UTC

Hi John,

Thanks for contacting us.
 
We have validated your query. By default we have taken id value as name attribute value. But also, We have HtmlAttribute support for our Uploader. So that you can set any html attribute to the Uploader control. 
Note: In our examples of the server side code block we have proceeded with the name attribute. Incase of you are following as like same in documentation. Please do the changes accordingly as per name attribute. 
 
Code example:

 
@{  
Dictionary<string, object> 
htmlAttribute = new Dictionary<string, object>() { 
    {"name", "myFiles" } 
}; 
} 
 
 
@Html.EJS().Uploader("UploadFiles").HtmlAttributes(htmlAttribute).Render() 

Kindly let us know if you need any further assistance on this.
 
 
Regards, 
Narayanasamy P. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon