From dd1c5f8900bb95a47209e6a1efea8ea51950fdd4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 1 Nov 2015 10:41:02 +0000 Subject: Files upload restriction by files extensions (#20008). git-svn-id: http://svn.redmine.org/redmine/trunk@14792 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/settings/_attachments.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/views/settings') diff --git a/app/views/settings/_attachments.html.erb b/app/views/settings/_attachments.html.erb index f8a85c748..818845e55 100644 --- a/app/views/settings/_attachments.html.erb +++ b/app/views/settings/_attachments.html.erb @@ -3,6 +3,12 @@

<%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

+

<%= setting_text_area :attachment_extensions_allowed %> +<%= l(:text_comma_separated) %> <%= l(:label_example) %>: txt, png

+ +

<%= setting_text_area :attachment_extensions_denied %> +<%= l(:text_comma_separated) %> <%= l(:label_example) %>: js, swf

+

<%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %>

<%= setting_text_field :diff_max_lines_displayed, :size => 6 %>

-- cgit v1.2.3