0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 12:34:35 +01:00

Merge pull request #2024 from andreynering/dropzone-allow-all-files

Fixing Dropzone should accept all files when config is "*/*".
This commit is contained in:
Unknwon 2015-11-23 10:54:48 -05:00
commit ffbeda077c

View file

@ -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'),