dropzone.js 修改提示消息

image.png
Dropzone.prototype.defaultOptions.dictDefaultMessage = "Drop files here to upload";
Dropzone.prototype.defaultOptions.dictFallbackMessage = "Your browser does not support drag'n'drop file uploads.";
Dropzone.prototype.defaultOptions.dictFallbackText = "Please use the fallback form below to upload your files like in the olden days.";
Dropzone.prototype.defaultOptions.dictFileTooBig = "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.";
Dropzone.prototype.defaultOptions.dictInvalidFileType = "You can't upload files of this type.";
Dropzone.prototype.defaultOptions.dictResponseError = "Server responded with {{statusCode}} code.";
Dropzone.prototype.defaultOptions.dictCancelUpload = "Cancel upload";
Dropzone.prototype.defaultOptions.dictCancelUploadConfirmation = "Are you sure you want to cancel this upload?";
Dropzone.prototype.defaultOptions.dictRemoveFile = "Remove file";
Dropzone.prototype.defaultOptions.dictMaxFilesExceeded = "You can not upload any more files.";

https://stackoverflow.com/a/38732545/2031686

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 2,228评论 0 3
  • 忽然想做一缕微风 诗/刘锋 忽然想做一缕微风 只是瞬间的念头 想像自己正走过田野 轻抚一朵桃花,或李花 想像春天正...
    四川刘锋阅读 780评论 11 27
  • 幽都关前情殉道,仙乡路中松迎雪 赤松子得道之前,曾有一段尘缘,但他无法舍弃道行接受那名女子。最后,女子绝望离开前问...
    岚风的叶子阅读 3,984评论 0 2
  • 如果看完一本书,让你想成为一个更好的人,那它必是一本好书无疑了。 《杀死一只知更鸟》就是这样一本好书。那它都教会了...
    年少影追阅读 2,074评论 0 3
  • 觅一乡野僻地, 建一草舍柴篱, 养一只黄犬, 放几只肥鸡, 种几分薄田, 植几株桃李。 春来静听花开, 夏日浓荫做...
    北极朔阅读 206评论 0 1