MantisBT: master cb23a6e1

Author Committer Branch Timestamp Parent
cproensa atrol master 2019-02-09 15:36 master 217e74cd
Affected Issues  0025464: Enforce max-filesize in dropzone to alert and drop big files before form submission
Changeset

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

mod - core/print_api.php Diff File
mod - js/common.js Diff File