From fba33d3afc5cff66094f162cd5c29e59a034126f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 16 Mar 2023 12:04:15 +0100 Subject: [PATCH] add options allowedFiles and more --- view/js/dropzone-factory.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/view/js/dropzone-factory.js b/view/js/dropzone-factory.js index bbf92625d..a3a3e6c36 100644 --- a/view/js/dropzone-factory.js +++ b/view/js/dropzone-factory.js @@ -4,6 +4,9 @@ var DzFactory = function () { paramName: 'userfile', // The name that will be used to transfer the file maxFilesize: max_imagesize, // MB url: '/media/photo/upload?response=url&album=', + addRemoveLinks: true, + acceptedFiles: 'image/*', + clickable: true, accept: function(file, done) { done(); },