Apache download zip file






















Post as a guest Name. Email Required, but never shown. The Overflow Blog. Introducing Content Health, a new way to keep the knowledge base up-to-date. Podcast what if you could invest in your favorite developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. And no programming involved. Sounds impossible? Well no, thanks to the directory listing and the fancyindexing feature of the Apache web server you can create a quite beautiful download site for each individual customer.

Results first:. The results can be quite stunning when you know your way around with HTML and CSS, but the more important fact is: we did use the Apache webserver for the result only. No database, no t too much coding, no FTP server involved. I promise. Additionally, the outgoing CamelFileName message header is automatically set to the value of the incoming CamelFileName message header, with the ". So for example, if the following route finds a file named "test.

If you want to override this behavior, then you can set the value of the CamelFileName header explicitly in your route:. This route would result in a Zip file named "report. If the zip file has more then one entry, the usingIterator option of ZipFileDataFormat to be true, and you can use splitter to do the further work.

In this example we aggregate all text files found in the input directory into a single Zip file that is stored in the output directory. Add a comment. Active Oldest Votes. That's really strange, I commented out the headers that you did in yours and even still its not working. I am wondering if its something wrong with my php configuration.

I tested on wamp, i did put Content-Disposition back into one line. With my first attempt it was downloading an attachment with the same name as the php file — bumperbox.

I have had it download the "download. For me it does download the "myFile. Leaving the headers that you left up still ends me with a zip file that cant be opened. If the zip file is 0 length u will get an error like what you describe. Add a comment. Active Oldest Votes. Improve this answer. Community Bot 1. Kresimir Pendic Kresimir Pendic 1, 9 9 silver badges 12 12 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000