Good!
I'm trying to make a download of a zip file from the server, but when I start the download, it gets stuck ending up as failed.
- As a data, when I change the file type to plain and download a
txt any, download and open without problems -
I leave part of my code where I trigger the download.
(I changed the names so that my problem is understood)
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename=fotos.zip');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize('C:/ExportacionImagenes/CarpetaComprimida.zip'));
readfile('C:/ExportacionImagenes/CarpetaComprimida.zip');