Browse Source

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

Fixing Dropzone should accept all files when config is "*/*".
for-closed-social
Unknwon 9 years ago
parent
commit
ffbeda077c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/js/gogs.js

+ 1
- 1
public/js/gogs.js 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'),

Loading…
Cancel
Save