View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0025464 | mantisbt | attachments | public | 2019-02-09 14:20 | 2019-03-16 20:20 |
| Reporter | cproensa | Assigned To | cproensa | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.20.0 | ||||
| Target Version | 2.20.0 | Fixed in Version | 2.20.0 | ||
| Summary | 0025464: Enforce max-filesize in dropzone to alert and drop big files before form submission | ||||
| Description | Seems like the option for max-filesize in Dropzone upload does nothing. I can submit any file but if the size is big enough, it's silently ignored | ||||
| Tags | No tags attached. | ||||
|
There is a message that appears when the cursor hovers over the file box. |
|
|
I have update the summary to better reflect the implemented changes. |
|
|
MantisBT: master cb23a6e1 2019-02-09 15:36 Committer: atrol Details Diff |
Reject files in client side Dropzone Catch the event for file added and check the file size to be under the maximum allowed size for uploads. If file is bigger, a warning message is shown and the file is rejected. Change how the max_file_size is passed to client, so that now we have the exact value in bytes to compare, even though Dropzone will still be configured with an aproximation in MiB. Fixes: 0025464 |
Affected Issues 0025464 |
|
| mod - core/print_api.php | Diff File | ||
| mod - js/common.js | Diff File | ||