diff --git a/app/Controllers/FileController.php b/app/Controllers/FileController.php index 668f528..2e56540 100644 --- a/app/Controllers/FileController.php +++ b/app/Controllers/FileController.php @@ -197,7 +197,7 @@ class FileController extends Controller $none = [ 'name' => basename($noFile), 'data' => file_get_contents($noFile), - 'mime' => getimagesizefromstring($noFile)['mime'], + 'mime' => getimagesize($noFile)['mime'], ]; if (!$user->activated