Patch originally from Richard Purdie <rpurdie@rpsys.net> but tweaked by me.
Attach a file by drag & drop or click to upload