From 8a7d726fd915f020778faca8bbcb52e6be4a289d Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Sun, 25 Jan 2026 23:07:07 +0100 Subject: [PATCH] Refactor file upload restrictions to limit accepted formats to JPG and PNG, and update maximum file size to 20MB --- account.php | 2 +- upload.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/account.php b/account.php index a4daa0b..8b527ee 100644 --- a/account.php +++ b/account.php @@ -93,7 +93,7 @@ include 'header.php';
-

Erlaubt: JPG/PNG/WebP. Maximalgröße je nach Server.

+

Erlaubt: JPG/PNG. max. 20MB.

diff --git a/upload.php b/upload.php index d3a9a47..1878784 100644 --- a/upload.php +++ b/upload.php @@ -51,7 +51,6 @@ if ($tmp === '' || !is_uploaded_file($tmp)) $allowedMimeToExt = [ 'image/jpeg' => 'jpg', 'image/png' => 'png', - 'image/webp' => 'webp' ]; $finfo = new finfo(FILEINFO_MIME_TYPE);