From 880849a28382f70b975f5ac471946377c3fcd1c3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 23 Nov 2015 13:46:58 -0200 Subject: [PATCH] Fixing Dropzone should accept all files when config is "*/*". --- public/js/gogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/gogs.js b/public/js/gogs.js index 599f36378..5002f6411 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -735,7 +735,7 @@ $(document).ready(function () { headers: {"X-Csrf-Token": csrf}, maxFiles: $dropz.data('max-file'), maxFilesize: $dropz.data('max-size'), - acceptedFiles: $dropz.data('accepts'), + acceptedFiles: ($dropz.data('accepts') === '*/*') ? null : $dropz.data('accepts'), addRemoveLinks: true, dictDefaultMessage: $dropz.data('default-message'), dictInvalidFileType: $dropz.data('invalid-input-type'),