$("#fileupload_input_factor").fileinput({
language : 'zh',
uploadUrl : contextpath + "/rest/pollutionburining/burninguploadfile?status="+status+"&source="+source,
enctype : 'multipart/form-data',
// 隐藏文件预览缩略图
showPreview : false,
// 隐藏上传按钮
showUpload : true,
// 显示标题
showCaption : true,
// 预加载说明
initialCaption : "上传贡献文件",
// 只能选择{text类型}
allowedPreviewTypes : [ 'txt'],
// 只能上传一下类型文件
allowedFileExtensions : [ "txt"],
// 报错样式
previewClass : "bg-warning",
maxFileSize : 2000,
window:true,
});
// 上传回调
$("#fileupload_input_factor").on("fileuploaded", funct
bootstrap-fileinput 文件上传
最新推荐文章于 2022-12-06 22:50:42 发布