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.
Unfortunately, activation email could not send to your email. Please try again.

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

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

Article ID: Published Date: Last Revised Date: Platform: Control:
8934 07/10/2018 07/10/2018 ASP.NET Core UploadBox
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.