Joseph Szobody
Joseph Szobody
v5.6 takes care of this now folks. The underlying zipstream package automatically sends HTTP headers, so I had to suppress those in order to save a zip to disk without...
Merged and tagged `0.17`. Thanks for the reminder!
I would be open to reviewing a PR for this if you want to take a stab at it. I'm not likely to have time to build this myself anytime...
I just released v5.6, which fixes an issue with saving a zip file to disk. I think it will resolve the issue you were hitting. HTTP headers being sent automatically...
This PR would break other use cases where the impersonation banner needs a higher z-index. Perhaps the answer is instead to push the notification z-index higher?
Correct, there is no current support in this package for adding empty directories to a zip.
I don't think so. There is no option to add empty folders in the underlying [`ZipStream-PHP`](https://github.com/maennchen/ZipStream-PHP) library that this package uses, and no plans to add it either.
Skip that middle line, don't try to add the directory. Just `$zip->add('/path/to/dir/fle.jpg', 'dir/file.jpg');` and it will create the zip directory for you.
I'm glad to see the underlying [ZipStream-PHP](https://github.com/maennchen/ZipStream-PHP) library has added support. This seems reasonable now. I'm not sure when I'll have time to add this, and would welcome a pull...
It makes sense that the `_previous` session key would point back to the URL you were on while impersonating, if that is indeed the last page you visited. Not sure...