Error «1G is not a valid maximun size.» – Prestashop 1.7


Search and edit this file by FTP
/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/File.php

Search this lines:
       $factors = array(
            ‘k’ => 1000,
            ‘ki’ => 1 << 10,
            ‘m’ => 1000000,
            ‘mi’ => 1 << 20,
        );

Replace it with this lines:
       $factors = array(
            ‘k’ => 1000,
            ‘ki’ => 1 << 10,
            ‘m’ => 1000000,
            ‘mi’ => 1 << 20,
            ‘g’ => 1000000000,
            ‘gi’ => 1 << 30,
        );