我使用带有CI的dropzone,我不知道如何在上传false时显示错误消息和自定义消息,这是我的脚本
Dropzone.autoDiscover = false;
try {
var myDropzone = new Dropzone("#adminform" , {
paramName: "filename", // The name that will be used to transfer the file
maxFilesize: 0.5, // MB
url: window.location.href,
addRemoveLinks : true,
dictDefaultMessage :
'<span class="bigger-150 bolder"><i class="ace-icon fa fa-caret-right red"></i> Drop files</span> to upload \
<span class="smaller-80 grey">(or click)</span> <br /> \
<i class="upload-icon ace-icon fa fa-cloud-upload blue fa-3x"></i>',
dictResponseError: 'Error while uploading file!',
//change the previewTemplate to use Bootstrap progress bars
previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n …Run Code Online (Sandbox Code Playgroud) 我在我的网站上使用了这个元数据
<meta property="og:image" content="http://tongkienphi.com/public/uploads/2013/3/702594ed31541de6fc7ab4ba488bc14f_thumb.jpg"/>
Run Code Online (Sandbox Code Playgroud)
但是,当我发布一个链接到Facebook,它没有检测到该图像,它总是检测到横幅图像:(
我发现这个主题chrome:如何关闭用户代理样式表设置?但它对我来说无济于事.
在Firefox中,它显示:

在Chrome中,它显示:

Chrome自动添加UA样式表:

所以我的图标无法显示.
如何关闭它.