]> git.agnieray.net Git - galette.git/commitdiff
Set default max filesize to 2Mio
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 10 Jul 2023 05:43:52 +0000 (07:43 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 5 Sep 2023 19:04:03 +0000 (21:04 +0200)
galette/lib/Galette/IO/FileInterface.php
tests/Galette/Core/tests/units/Picture.php

index 7deb2de691f0f19ee0a1468329473fe0ecf41109..d3827ae540d5f93c88283ec8c4ea33ecd6790ba7 100644 (file)
@@ -58,5 +58,5 @@ interface FileInterface
     public const NEW_FILE_EXISTS = -5;
     public const INVALID_FILE = -6;
     public const CANT_WRITE = -7;
-    public const MAX_FILE_SIZE = 1024;
+    public const MAX_FILE_SIZE = 2048;
 }
index f77c19d17d0fecda4b4093bab75f96f6e6aab9bc..e7d8c4eeb19a8df8e9440ed17baf1d43524e2029 100644 (file)
@@ -236,7 +236,7 @@ class Picture extends TestCase
             $this->picture->getErrorMessage(\Galette\Core\Picture::INVALID_EXTENSION)
         );
         $this->assertSame(
-            'File is too big. Maximum allowed size is 1024Ko',
+            'File is too big. Maximum allowed size is 2048Ko',
             $this->picture->getErrorMessage(\Galette\Core\Picture::FILE_TOO_BIG)
         );
         $this->assertSame(