Details
Description
When creating content with the option of uploading files, we have information about the maximum file size, which is incorrect - the limit of 10 MB shows Max file size: 10.49 MB.
However, if we throw a file that exceeds the file size limit, we will get the information "The file size cannot exceed 1 byte."
instead of a byte, there should be a megabyte
Steps to reproduce
- Install Ibexa DXP v3.3
- Create new image content
Result
When creating image content, the message informs us about the limit "Max file size: 10.49 MB"
Excepted Result:
The message should display the correct limit size
Note
In ezsystems/ezplatform-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/FileSizeExtension.php we mod by 1000 not 1024