From 3016695277cd3a9606892e8aa8bafe7730914b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Tue, 14 Dec 2021 15:25:37 +0900 Subject: [PATCH] =?UTF-8?q?5=20MiB=20=E2=86=92=2010=20MiB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/Http/Controllers/Controller.php b/backend/app/Http/Controllers/Controller.php index 55059246..296cc4ae 100644 --- a/backend/app/Http/Controllers/Controller.php +++ b/backend/app/Http/Controllers/Controller.php @@ -43,7 +43,7 @@ class Controller extends BaseController public function imagesize ($value) { try { - return strlen($value) < 5242880; // 5 MiB(メビバイト) / 5.24288 MB(メガバイト) + return strlen($value) < 10485760; // 10 MiB(メビバイト) / 10.48576 MB(メガバイト) } catch (\Throwable $e) { Log::critical($e->getMessage()); return false; @@ -124,7 +124,7 @@ class Controller extends BaseController try { $ok = true; foreach (json_decode($value) as $v) { - if (strlen(base64_decode($v)) > 5242880) { // 5 MiB(メビバイト) / 5.24288 MB(メガバイト) + if (strlen(base64_decode($v)) > 10485760) { // 10 MiB(メビバイト) / 10.48576 MB(メガバイト) $ok = false; } }