Fixing Dropzone should accept all files when config is "*/*".

tokarchuk/v1.17
Andrey Nering 9 years ago
parent b2fb7e3fd2
commit 880849a283
  1. 2
      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'),

Loading…
Cancel
Save