Articles in this section
Category / Section

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

1 min read

In the ASP.NET Core File Upload 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,

    <ej-upload-box id="UploadDefault" save-url="UploadFiles"  extensions-allow=".pdf">
    </ej-upload-box>

 

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

 

Conclusion

I hope you enjoyed learning about why extensions-allow property in the upload box does not work in Edge browser.

You can refer to our  ASP.NET Core File Upload feature tour page to know about its other groundbreaking feature representations. You can also explore our  ASP.NET Core File Upload examples to understand how to present and manipulate data.

For current customers, you can check out our ASP.NET Core Controls from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our ASP.NET Core File Upload and other ASP.NET Core controls.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied