NOTE: This is a copy of uploadAPI, i.e. it parses JSON currently.
Attach a file by drag & drop or click to upload