Project

General

Profile

Feature #18555 » defect-18555-v2.patch

Mizuki ISHIKAWA, 2020-03-24 09:34

View differences:

app/views/attachments/_form.html.erb
:multiple => multiple,
:onchange => 'addInputFiles(this);',
:data => {
:max_number_of_files_message => l(:error_attachments_too_many),
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
config/locales/en.yml
error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
error_unable_delete_issue_status: 'Unable to delete issue status (%{value})'
error_unable_to_connect: "Unable to connect (%{value})"
error_attachments_too_many: "This file cannot be uploaded because the maximum number of files that can be attached in one update has been reached."
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."
public/javascripts/attachments.js
addAttachment.toggle(attachmentsFields.children().length < maxFiles);
return attachmentId;
} else {
alert($('input.file_selector').data('max-number-of-files-message'));
}
return null;
}
(4-4/7)