Skip to content
Advertisement

Symfony2 create and download zip file

I have one application that upload some files and then I can compress as zip file and download.

The export action:

JavaScript

everything is ok until the line header. and everytime I’m going here I got the error: “Warning: readfile(../web/Documents-1385648213.zip): failed to open stream: No such file or directory”

What is wrong?

and why when I upload the files, this files have root permissions, and the same happens for the zip file that I create.

Advertisement

Answer

solved:

JavaScript

apparently closing the file is important 😉

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement