This avoids one HTTP request, and is potentially more flexible.
Attach a file by drag & drop or click to upload