Using JavaScript I want to:
generate a file locally and serve it to the user as
Content-Disposition: attachment;
load a file locally from the user via a form
<input type="file" />
Is this possible, and if so, what is the most straightforward way to do it?