diff --git a/public/js/gogs.js b/public/js/gogs.js index 599f3637871..5002f641189 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'),