browser - How to download multiple files with one HTTP request? -


Use the case: The user clicks the link on the webpage - Boom! Load the files sitting in their folder.
I tried to pack using the files, but it looks only works for Firefox

This was my response:

  HTTP / 1.0 200 OK Connection: Closed date: Wed, 24 Jun 2009 23:41:40 GMT Share this: Content-Type: Multipart / Mixed; Border = AMZ90RFX875LKMFasdf09DDFF3 customer Date: Wed, 24 Jun 2009 23:41:40 GMT-client peer: L27k0k0kl:3000 client-Response-number: 1 MIME-Version: 1.0 Status: 200 - 875 Mmjedarfaks Elkemfasdif 0 9 Deediff 3 content -type: Image / JPEG Content-Transfer-Encoding: Binary Content-Swiss: Attachment; File name = "001.jpg" & lt; & Lt; Here binary data & gt; & Gt; - AMZ90RFX875LKMFasdf09DDFF3 content-types are: image / jpeg Content-Transfer-Encoding: binary Content-cloned: attachment; File name = "002.jpg" & lt; & Lt; Here binary data & gt; & Gt; - AMZ90RFX875LKMFasdf09DDFF3 --AMZ90RFX875LKMFasdf09DDFF3--  

Thank you

PS. No, zipping files is not an option

zipping only option that will be consistent results across all browsers. If this is not an option because you do not know that zip can be dynamically generated, well, they can. If this is not an option because there is no complaint against you zip files, right ..

MIME / multipart email messages and / or post on the HTTP server for the transmission client an HTTP transaction The side was not received and parsed. Some browsers implement it, others do not.

As another option, you can have a JavaScript script that opens a window that downloads personal files or requires Java applet (Java runtime on machines, if this is an enterprise application, then this There should not be a problem [because netadmin can deploy on workstations]) which will download the file to a directory of the user's choice.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -