bootstrap-fileinput 文件上传
$("#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", function(event, data, previewId, index) {
if(data.response.message=="数据重复!"||data.response.message=="文件上传失败!"){
MyAlert(data.response.message,function(){
$roadpm11.find("#pollution-table").bootstrapTable('refresh');
})
}else{
setTimeout(function(){
$roadpm11.find("#pollution-table").bootstrapTable('refresh');
},5000);
}
});
- JS组件系列——Bootstrap文件上传组件:bootstrap fileinput
- Bootstrap fileinput.js,最好用的文件上传组件
- Bootstrap文件上传组件:bootstrap fileinput
- 文件上传组件bootstrap fileinput
- bootstrap fileinput 上传文件
- Bootstrap的fileinput插件实现多文件上传的方法
- Bootstrap fileinput.js,最好用的文件上传组件
- JS组件系列——Bootstrap文件上传组件:bootstrap fileinput
- .net core版 文件上传/ 支持批量上传拖拽及预览功能(bootstrap fileinput上传文件)
- 支持多文件上传,预览,拖拽,基于bootstrap的上传插件fileinput的ajax异步上传
- 基于Metronic的Bootstrap开发框架经验总结(5)--Bootstrap文件上传插件File Input的使用
- bootstrap File Input 多文件上传插件使用记录(一)配置及批量同步上传
- Bootstrap文件上传组件:Bootstrap fileinput
- Bootstrap Fileinput文件上传
- bootstrap-fileinput-master文件上传
- Django 上传文件(bootstrap file input插件) 中文乱码 解决 (python3)
- 文件上传预览插件 Bootstrap-fileinput组件封装及使用
- 基于bootstrap的上传插件fileinput实现ajax异步上传功能(支持多文件上传预览拖拽)
- BootStrap FileInput 插件实现多文件上传前端功能
- Bootstrap fileinput.js,最好用的文件上传组件