Relative Content

Tag Archive for javascriptphppdfzipphp-ziparchive

Corrupted Zip file using ZipArchive and Ajax

I have an ajax call that saves some data to a database, but now I need to also download a zip file with a bunch of PDFs inside of it. My problem is that i can’t make it so the file I download isn’t corrupted. Can anyone spot if I am doing something wrong here? PHP version is 7.2.11 if that’s of any help.