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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

File Upload Restriction

Thread ID:





146299 Jul 30,2019 11:36 AM UTC Jul 31,2019 08:50 AM UTC ASP.NET MVC 1
Tags: FileExplorer
Frankie Moran
Asked On July 30, 2019 11:36 AM UTC


Just wanting to know how it is possible to restrict the file extensions which can be uploaded when using the File Explorer. I know this functionality exists in the UploadBox but can't see any documentation when using the File Explorer.

Many thanks,

Ashokkumar Balasubramanian [Syncfusion]
Replied On July 31, 2019 08:50 AM UTC

Hi Frankie,  
Greetings from Syncfusion support. 
In our FileExplorer component, we have provided the fileTypes property for allows specified type of files only to display. You can use this property to allows the specified type of files in all the file operations. Please check the below help document. 
We have used the same UploadBox functionality in FileExplorer component, so if you want to restrict the file types in Upload functionality. You can use the FileExplorer create event to access the corresponding UploadBox element and restrict it. Please find the below code block. 
function onCreate() { 
            this.element.find(".e-uploadbox").ejUploadbox("instance").option("extensionsAllow", ".css"); 
Please check the above provided information’s and get back to us, if you require any further assistance. 
Ashokkumar B. 


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