From 1b12be5d02db93a59fbf109a6cf088ecabb68895 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 15 Dec 2018 02:31:43 +0300 Subject: [PATCH] Settings: new item - accept_file_types Define the file types (extensions to be exact) that are acceptable for upload. --- flextype/config/settings.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flextype/config/settings.yaml b/flextype/config/settings.yaml index a753753a..b6459c49 100644 --- a/flextype/config/settings.yaml +++ b/flextype/config/settings.yaml @@ -43,3 +43,6 @@ cache: prefix: Flextype driver: auto lifetime: 604800 + +# Define the file types (extensions to be exact) that are acceptable for upload. +accept_file_types: [ twig, html, js, css, scss, gif, jpg, jpeg, png, ico, zip, tgz, txt, md, doc, docx, pdf, epub, xls, xlsx, ppt, pptx, mp3, ogg, wav, m4a, mp4, m4v, ogv, wmv, avi, webm, svg]