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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Why extensions-allow property in the upload box does not work in Edge browser ?

Platform: ASP.NET Web Forms |
Control: Uploadbox |
Published Date: July 10, 2018 |
Last Revised Date: July 10, 2018

In the UploadBox control, the input upload element uses “accept” attribute to allow only specified file types, when the extensions-allow property is set in the control. The input element’s “accept” attribute is not supported in Edge browser. Refer to the following MSDN link.

 

Consider the following example,

 

In the previous code, the extensions-allow property is set to ".pdf". So, the accept attribute will be set to “.pdf” in the Upload’s input element. This will not work in Edge browser and when selecting the files, all file types will be displayed. If any other file type is selected instead of PDF, it will not be received by the controller. If the selected file is PDF document, then it will be uploaded properly. 

Sample

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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