ImageUpload: nur mime-type image/* akzeptieren
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 14 May 2021 16:48:01 +0000 (18:48 +0200)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
SL/Controller/ImageUpload.pm

index 952522a..18561e0 100644 (file)
@@ -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"
 }