Extract code for setting up the request params into a new function.
Attach a file by drag & drop or click to upload