robbederks / downzip

NPM library to enable client-side code to stream potentially large files into a zipped download
MIT License
35 stars 12 forks source link

Resource interpreted as Document but transferred with MIM type application/octet-stream #1

Closed cgarciajr closed 4 years ago

cgarciajr commented 4 years ago

In chrome, I get the warning above. The resulting zip is around 15 bytes. In the Chrome Network developer tool I see the downloading of the zip contents (~9MB). Any tips or clues on how to solve this?

robbederks commented 4 years ago

Sorry for the late reply!

According to https://stackoverflow.com/questions/6587393/resource-interpreted-as-document-but-transferred-with-mime-type-application-zip, this might be fixed by adding the download attribute to the <a/> you're using to start the download. Can you try that?