diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-21 05:59:31 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-21 05:59:31 +0000 |
commit | ab47fb8ae0e6685900e3a22de3b9ce265a5b05fa (patch) | |
tree | 22a50ddb755864b883f02833b03db48feb072691 /config | |
parent | 6abf527aa0e3271ebd38c1ac50a4691dab611b2e (diff) | |
download | redmine-ab47fb8ae0e6685900e3a22de3b9ce265a5b05fa.tar.gz redmine-ab47fb8ae0e6685900e3a22de3b9ce265a5b05fa.zip |
Download all attachments at once (#7056).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19601 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/locales/en.yml | 3 | ||||
-rw-r--r-- | config/routes.rb | 1 | ||||
-rw-r--r-- | config/settings.yml | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml index 7bb506c57..2b4850c05 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -214,6 +214,7 @@ en: error_unable_delete_issue_status: 'Unable to delete issue status (%{value})' error_unable_to_connect: "Unable to connect (%{value})" error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})" + error_bulk_download_size_too_big: "These attachments cannot be bulk downloaded because the total file size exceeds the maximum allowed size (%{max_size})" error_session_expired: "Your session has expired. Please login again." error_token_expired: "This password recovery link has expired, please try again." warning_attachments_not_saved: "%{count} file(s) could not be saved." @@ -401,6 +402,7 @@ en: setting_self_registration: Self-registration setting_show_custom_fields_on_registration: Show custom fields on registration setting_attachment_max_size: Maximum attachment size + setting_bulk_download_max_size: Maximum total size for bulk download setting_issues_export_limit: Issues export limit setting_mail_from: Emission email address setting_bcc_recipients: Blind carbon copy recipients (bcc) @@ -1018,6 +1020,7 @@ en: label_users_visibility_all: All active users label_users_visibility_members_of_visible_projects: Members of visible projects label_edit_attachments: Edit attached files + label_download_all_attachments: Download all files label_link_copied_issue: Link copied issue label_ask: Ask label_search_attachments_yes: Search attachment filenames and descriptions diff --git a/config/routes.rb b/config/routes.rb index 264532042..7e8cdeac9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -289,6 +289,7 @@ Rails.application.routes.draw do resources :attachments, :only => [:show, :update, :destroy] get 'attachments/:object_type/:object_id/edit', :to => 'attachments#edit_all', :as => :object_attachments_edit patch 'attachments/:object_type/:object_id', :to => 'attachments#update_all', :as => :object_attachments + get 'attachments/:object_type/:object_id/download', :to => 'attachments#download_all', :as => :object_attachments_download resources :groups do resources :memberships, :controller => 'principal_memberships' diff --git a/config/settings.yml b/config/settings.yml index d33523aeb..5aaaaac28 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -66,6 +66,9 @@ session_timeout: attachment_max_size: format: int default: 5120 +bulk_download_max_size: + format: int + default: 102400 attachment_extensions_allowed: default: attachment_extensions_denied: |