Feature #18555

Show warning when attempting to attach more than the allowed number of attachments

Added by Stephen Ostrow almost 6 years ago. Updated 8 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Attachments
Target version:4.2.0
Resolution:Fixed

Description

I was just notified by an employee of mine that my ticket was missing some of the attached files that should have been there. I thought I had merely forgot to attach them; however, upon repeating my edit due to needing to remake all the files I learned that redmine has a hard limit of 10 files attached per edit.

Although I'm not sure why this limit exists (I'll be adding another issue to make this a setting or remove it) redmine should definitely alert the end user to the limit both beforehand such as like the the text for max file size is displayed as well as after an attempt to add more than 10 files is added (javascript alert box or something similar).

This is related to issue #8579
This is the code in question: source:/trunk/public/javascripts/attachments.js#L6

remine number of files limit beforehand.png (229 KB) Stephen Ostrow, 2014-12-03 21:36

defect-18555-v1.patch Magnifier (1.97 KB) Mizuki ISHIKAWA, 2020-03-16 05:36

ScreenShot.png (200 KB) Mizuki ISHIKAWA, 2020-03-16 05:36

defect-18555-v2.patch Magnifier (2.04 KB) Mizuki ISHIKAWA, 2020-03-24 09:34

defect-18555-v3.patch Magnifier (2.08 KB) Mizuki ISHIKAWA, 2020-03-25 08:57


Related issues

Related to Redmine - Feature #18556: Add ability to configure limit of attachments at once New
Duplicated by Redmine - Defect #18642: Limited number of simultanous file uploads Closed

Associated revisions

Revision 19620
Added by Go MAEDA 8 months ago

Show warning when attempting to attach more than the allowed number of attachments (#18555).

Patch by Mizuki ISHIKAWA.

Revision 19621
Added by Go MAEDA 8 months ago

Update locales (#18555).

History

#1 Updated by Go MAEDA almost 6 years ago

  • Related to Feature #18556: Add ability to configure limit of attachments at once added

#2 Updated by Go MAEDA almost 6 years ago

  • Duplicated by Defect #18642: Limited number of simultanous file uploads added

#3 Updated by Mizuki ISHIKAWA 9 months ago

After adding the eleventh file, I attached a patch that gives a javascript alert like the image below.

max-number-of-files-message:

This file cannot be uploaded because the maximum number of files that can be attached at the same time has been reached.

I'm not a native English speaker, so I'd like someone to review the "max-number-of-files-message".

#4 Updated by Mizuki ISHIKAWA 8 months ago

I changed the message.

#5 Updated by Go MAEDA 8 months ago

  • Target version set to Candidate for next major release

#6 Updated by Mizuki ISHIKAWA 8 months ago

@Marius BALTEANU and @Bernhard Rohloff corrected the English sentence, so I updated the patch based on that.

#7 Updated by Go MAEDA 8 months ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

#8 Updated by Go MAEDA 8 months ago

  • Tracker changed from Defect to Feature
  • Subject changed from Notify user when attempting to attach more than the allowed number of attachments to Show warning when attempting to attach more than the allowed number of attachments
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

#9 Updated by Go MAEDA 8 months ago

  • Status changed from New to Closed

Also available in: Atom PDF