nizongfeng 1 year ago
parent
commit
4db32e3f71
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      public/assets/js/dropzone.js

+ 1
- 3
public/assets/js/dropzone.js View File

@@ -1885,9 +1885,7 @@ function (_Emitter) {
}, {
key: "accept",
value: function accept(file, done) {
if (this.options.maxFilesize && file.size > this.options.maxFilesize * 1024 * 1024) {
done(this.options.dictFileTooBig.replace("{{filesize}}", Math.round(file.size / 1024 / 10.24) / 100).replace("{{maxFilesize}}", this.options.maxFilesize));
} else if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) {
if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) {
done(this.options.dictInvalidFileType);
} else if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {
done(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}", this.options.maxFiles));


Loading…
Cancel
Save