In preparation for making some substantial changes to this piece of code, I'm translating it to JS.
Attach a file by drag & drop or click to upload