/**
* 初始化Dropzone
* */
function initDropzone(dropzone_id){
Dropzone.autoDiscover = false;// 抑制Uncaught Error: Dropzone already attached.错误
var allowedMaxFiles = {'P1' : 42, 'P2' : 10, 'P3' : 4, 'P4' : 9, 'P5' : 42};// 每个平台一次可传图片个数
var allowedImgSizeObj = {'P1' : 30, '42' : 30, 'P3' : 5, 'P4' : 5, 'P5' : 5};
var allowedVideoSizeObj = {'P1' : 4096, '42' : 4096, 'P3' : 512, 'P4' : 500, 'P5' : 10};
// 文件上传
var dropzone = new Dropzone('#' + dropzone_id,{
previewTemplate: document.querySelector('#preview-template').innerHTML,
url: "/contributes/fileUpload",
paramName: "file",
addRemoveLinks: true,
dictRemoveFile: '<div class="glyphicon glyphicon-trash" aria-hidden="true" style="color:#0