Tag: alfresco

Alfresco更新文件 – 错误发布

我正在尝试更新Alfresco中的文件……我制作了这段代码: var csrf_header = Alfresco.util.CSRFPolicy.getHeader(); var csrf_token = Alfresco.util.CSRFPolicy.getToken(); function getResponse(pdfbase64) { var fd = new FormData(); if (Alfresco.util.CSRFPolicy && Alfresco.util.CSRFPolicy.isFilterEnabled()) { fd.append(csrf_header, csrf_token); } fd.append(“username”, “admin”); fd.append(“updatenoderef”, nodeRef); fd.append(“filedata”, pdfbase64); fd.append(“majorversion”, “true”); fd.append(“overwrite”, “true”); alert(fileUpdateURL); $.ajax({ url: fileUpdateURL, type: “POST”, data: fd, processData: false, // tell jQuery not to process the data contentType: false […]