How to limit file extensions in CMS:Uploader control

Pablo Alejo asked on August 23, 2016 17:19

Is there a way to limit the file extensions being uploaded when using the cms:Uploader control? <cms:Uploader ID="uploader" runat="server" />

Correct Answer

Trevor Fayas answered on August 23, 2016 18:02

In the Kentico Settings, you can set the allowed File Types for Media Library (Settings > Content > Media > Security > Media file allowed extensions), as well as in the Form Control itself (Upload File) in the settings you can set the Allowed_Extensions property.

If you're doing pure ASPX, you should be able to set the Allowed_Extensions in the back end code for that form control.

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.