From 35f774a2769e29c4db972fa3173e46eb407f8207 Mon Sep 17 00:00:00 2001 From: stefanorosanelli Date: Fri, 14 Feb 2025 10:50:45 +0100 Subject: [PATCH] fix: use more reasonable defaults --- src/View/Helper/SystemHelper.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/View/Helper/SystemHelper.php b/src/View/Helper/SystemHelper.php index c25e0d4b2..66e8df69d 100644 --- a/src/View/Helper/SystemHelper.php +++ b/src/View/Helper/SystemHelper.php @@ -45,6 +45,24 @@ class SystemHelper extends Helper 'audio' => [ 'audio/*', ], + 'files' => [ + 'application/msword', // .doc, .dot + 'application/pdf', // .pdf + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // .docx + 'application/vnd.ms-excel', // .xls, .xlt, .xla + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', // .xlsx + 'application/vnd.ms-powerpoint', // .ppt, .pot, .pps, .ppa + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx + 'application/x-mpegURL', + 'audio/*', + 'text/csv', + 'text/html', + 'text/plain', + 'text/rtf', + 'text/xml', + 'image/*', + 'video/*', + ], 'images' => [ 'image/*', ], @@ -53,9 +71,21 @@ class SystemHelper extends Helper 'video/*', ], 'media' => [ + 'application/msword', // .doc, .dot + 'application/pdf', // .pdf + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // .docx + 'application/vnd.ms-excel', // .xls, .xlt, .xla + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', // .xlsx + 'application/vnd.ms-powerpoint', // .ppt, .pot, .pps, .ppa + 'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx 'application/x-mpegURL', 'audio/*', 'image/*', + 'text/csv', + 'text/html', + 'text/plain', + 'text/rtf', + 'text/xml', 'video/*', ], ];