View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015774 | mantisbt | attachments | public | 2013-04-22 17:25 | 2016-09-01 10:46 |
Reporter | viktor.minko | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.15 | ||||
Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
Summary | 0015774: Incorrect number of attached files | ||||
Description | I'm trying to enable multiple files uploading by adding "multiple" html5 attribute to single file input (by the way it would be good to have an option for that in config). It works well, except that I'm able to upload not more then 5 files. I think the problem is that number of attached files determined incorrectly. | ||||
Additional Information | I think the problem is in bug_file_add.php around lines 55-58: // Process array of files to upload I think it shoud be: | ||||
Tags | No tags attached. | ||||
The problem occurres in other places, e.g. at bug_report.php |
|
I was going to write that it sounded like you are customizing the MantisBT core and therefore not supported, then I had a quick look at the code and realized that you are absolutely right. I remember that when writing this code, I only performed basic unit-tests it with no more than 3 attachments. The changes were then pushed to core by rombert, who apparently did not catch the issue either ;-). Thanks for reporting the issue. Regarding your "multiple html5 attribute to single file input (by the way it would be good to have an option for that in config)", sounds like customizing the core. Why don't you propose a patch when you have it working, we'll see if it can be integrated. |
|
Please test [1] and let me know your feedback |
|
Did you get a chance to test ? |
|
Not yet, I'm using mantis with lots of core customization, and don't have a clean system to test now |
|
MantisBT: master-1.2.x 3ee6137c 2013-04-23 07:27 Committer: dregad Details Diff |
New helper_array_transpose api function Required for issue 0015774 |
Affected Issues 0015774 |
|
mod - core/helper_api.php | Diff File | ||
MantisBT: master-1.2.x 4bb2be6f 2013-04-23 07:30 Committer: dregad Details Diff |
Fix 0015774: unable to simultaneously upload > 5 files |
Affected Issues 0015774 |
|
mod - bug_file_add.php | Diff File | ||
mod - bug_report.php | Diff File |