AnsweredAssumed Answered

Error printed in console when download a file.

Question asked by sunquanbin on May 21, 2014
Hi everyone,

I am using the Alfresco.ArchiveAndDownload to provide the download function when user clicks a button.

Below are the codes in my button handler:

var downloadDialog = Alfresco.getArchiveAndDownloadInstance();

var config = {
nodesToArchive : [
      "nodeRef" : folderNodeRef
   archiveName : "testDown"

This will achive all the files under the specific folder into a zip and popup a downdload in the browser. It works fine but I have noticed there is an error printed in the console:

Uncaught TypeError: Cannot read property 'Content-Type' of undefined alfresco_4ba4d2944de114f8b4c7f6e9deec060.js:7359

Resource interpreted as Document but transferred with MIME type application/octet-stream: "http://localhost:8088/share/proxy/alfresco/api/node/content/workspace/SpacesStore/e3e5d8ae-458c-48f9-9626-3c957ad9b837/". archive-and-download_7a4af53cfae2055416817ac342c2f8.js:363


Should I ignore this message or there is a way to fix it up?