Send file to user
<p>How to send a file to the user so they can choose directory and file name. The code below let the user download the file but it does not allow for directory selection in Firefox. How can I fix it?</p>

<pre><code>// We'll be outputting a PDF
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');
// The PDF source is in original.pdf
readfile('original.pdf');
</code></pre>
