Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-1977

Messages about file size limit are incorrect

    XMLWordPrintable

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

      1. Install Ibexa DXP v3.3
      2. 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

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: