如果已经在表单加载开始时创建了上传器,如何在会话中更新参数?
var galleryUploader = new qq.FineUploader({
element: document.getElementById("fine-uploader-gallery"),
template: 'qq-template-gallery',
autoUpload: true,
deleteFile: {
enabled: true,
forceConfirm: true,
endpoint: "../FileDelete.ashx",
},
session: {
endpoint: "../FilePreload.ashx",
params: {
docNo: docNo
}
},
request: {
endpoint: "../MultiFileUpload.ashx",
},
editFilename: { enabled: false }, //params: { // docNo : docNo
//}, thumbnails: { placeholders: { waitingPath: "<%=ResolveUrl("~/images/placeholders/waiting-generic.png")%>", notAvailablePath: "<%=ResolveUrl("~/images/placeholders/not_available-generic.png")%>" } }, validation: { allowedExtensions: ['jpeg', 'jpg', 'gif', 'png', 'bmp', 'pdf', 'xls', 'xlsx', 'doc', 'docx', 'ppt', 'pptx', 'txt'], sizeLimit: 5120000 // 50 kB = 50 * 1024 bytes }, callbacks: { //submitDelete: function (id) {}, //onDelete: function (id) { // data = new FormData(); // data.append("docNo", docNo); // data.append("fileName", this.getName(id)); // DeleteExpFile(formId, data, undefined, undefined, DeleteErrorEvent, DeleteSuccessEvent); // this.cancel(id); //}, //onSubmit: function (id, fileName) {}, //onComplete: function (id, name, responseJSON, maybeXhr) {}, //onSessionRequestComplete: function (responseJSON, success, maybeXhr) {}, } })