From: Sven Schöling Date: Fri, 14 May 2021 16:48:01 +0000 (+0200) Subject: ImageUpload: nur mime-type image/* akzeptieren X-Git-Tag: kivitendo-mebil_0.1-0~9^2~68 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9c5ae7ed2c9a2292fbf95c3f8d2cbdc26e9bdd7f;p=kivitendo-erp.git ImageUpload: nur mime-type image/* akzeptieren --- 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" }