From 9c5ae7ed2c9a2292fbf95c3f8d2cbdc26e9bdd7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 14 May 2021 18:48:01 +0200 Subject: [PATCH] ImageUpload: nur mime-type image/* akzeptieren --- SL/Controller/ImageUpload.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SL/Controller/ImageUpload.pm b/SL/Controller/ImageUpload.pm index 952522a57..18561e0e7 100644 --- a/SL/Controller/ImageUpload.pm +++ b/SL/Controller/ImageUpload.pm @@ -49,6 +49,10 @@ sub action_resolve_object_by_number { ################# internal ############### +sub accept_types { + "image/*" +} + sub init_object_type { $::form->{object_type} or die "need object type" } -- 2.20.1