谁能告诉我怎么搞上传我的页面就一个这个就出来效果了我想知道怎么上传
<input id="file-5" class="file" type="file" multiple data-preview-file-type="any" data-upload-url="User/EditPortrait.action" data-preview-file-icon="">
页面加载初始化fileinput 了,如何在保存完表单通过返回的id,向fileinput uploadExtraData这个参数传入值 用
control.fileinput('refresh', { uploadExtraData: params, /* initialPreview: [ //预览图片的设置"<img src='" + imageurl + "' class='file-preview-image' alt='肖像图片' title='肖像图片'>",], */ });
是能够动态传入参数但没法回调。是不是函数写的位置不对?
我用批量拖拽上传成功了 , 但是我不想要 单个图片上的upload 按钮,删了半天删不掉 ,代码如下
$("#file-5").fileinput({ overwriteInitial: true, maxFileSize: 1500, showClose: false, showCaption: false, showUpload: true, uploadAsync: false, showBrowse: false, browseOnZoneClick: true, showCancel: true, removeLabel: '', allowedFileTypes: ['image'], removeIcon: '<i class="glyphicon glyphicon-remove"></i>', removeTitle: 'Cancel or reset changes', elErrorContainer: '#kv-avatar-errors-2', msgErrorClass: 'alert alert-block alert-danger', defaultPreviewContent: '<img src="<%=basePath%>images/nopic.png" alt="Your Avatar" style="width:160px"><h6 class="text-muted">Click to select</h6>', layoutTemplates: { main2: '{preview}{remove} {browse}' }, allowedFileExtensions: ["jpg", "png"] })
<div class = "form-group" > <input id = "file-5"name = "colourImages"class = "file"type = "file"multiple data - preview - file - type = "any"data - upload - url = "#"data - preview - file - icon = "" > </div>
这是js 和html,我用表单提交不需要单个上传按钮,求教 怎么才能去的掉?