How to use jQuery to download zip file which directly ouput from server?
<p>I have a php script that will generate zip file.</p>

<pre><code>header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=random_name.zip");
echo $zipfile-&gt;file();
</code></pre>

<p>The filename is random and the server script doesn't even come with a return-file-uri function.</p>

<p>So my question is that how jQuery can handle this output (echo $zipfile->file()) so that I can download the zip file in the usual way? </p>

<p>Any help would be appreciated.</p>

<p>Regards,</p>

<p>Jesse</p>
