so, after my ajax post request my Django view return a zip file as a response. I want to download that zip file as soon as the response came. But I don’t know what to do. I go through many answers but not worked for me. Right now zip file downloading but when I open it’s corrupted. My Django response
Tag: zip
Javascript create zip file
I am developing a website using react.js and admin-on-rest. One feature is allowing users to upload a pdf file. I get the file as type FILE and want to get the file from FILE, compress it to zip, and then make it to type FILE. So it should be FILE -> origin file -> zip file -> FILE from zip