If you want to restrict the file types that can be uploaded into the media library then you should look at the umbracoSetting.config in the /config folder.
In this file you will find a section about disallowed file types.
DisallowedUploadFiles
This settings consists of a "black list" of file extensions that editors shouldn't be allowed to upload via the back-office.
<!-- These file types will not be allowed to be uploaded via the upload control for media and content -->
<disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,svg,php,htaccess</disallowedUploadFiles>
Thanks for the info. I already use DisallowedUploadFiles.
What i want to make is to restrict the media picker by file extensions. For instance i have a media picker for video, to minimize the editor errors i want the media picker just accept the .mp4 files in library, or in upload step.
use regex validation for media picker
Hi,
Is it possible to use a regex validation to validate the media name in the media picker?
Would be nice if we could restrict the file types with regex or any other method.
Hi Osman,
If you want to restrict the file types that can be uploaded into the media library then you should look at the umbracoSetting.config in the /config folder.
In this file you will find a section about disallowed file types.
DisallowedUploadFiles
This settings consists of a "black list" of file extensions that editors shouldn't be allowed to upload via the back-office.
Hope this can be a solution for you.
/Dennis
Hi Dennis,
Thanks for the info. I already use DisallowedUploadFiles.
What i want to make is to restrict the media picker by file extensions. For instance i have a media picker for video, to minimize the editor errors i want the media picker just accept the .mp4 files in library, or in upload step.
May be in future versions ;)
Best regards...
is working on a reply...