美文网首页
dropzone.js 修改提示消息

dropzone.js 修改提示消息

作者: dantes1844 | 来源:发表于2019-06-05 10:30 被阅读0次
    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

    相关文章

      网友评论

          本文标题:dropzone.js 修改提示消息

          本文链接:https://www.haomeiwen.com/subject/tvdjxctx.html