]> git.mxchange.org Git - friendica.git/commitdiff
add options allowedFiles and more
authorJakobus Schürz <jakobus.schuerz@schuerz.at>
Thu, 16 Mar 2023 11:04:15 +0000 (12:04 +0100)
committerJakobus Schürz <jakobus.schuerz@schuerz.at>
Sun, 19 Mar 2023 17:52:46 +0000 (18:52 +0100)
view/js/dropzone-factory.js

index bbf92625d819cb2a0c2c9291364a3febe4b31e53..a3a3e6c3628e6c3861cdc60c1d50a1979f63c04c 100644 (file)
@@ -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();
                        },