Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #25464
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters