Validate query params and clean up the code. Also updated a few specs.
Attach a file by drag & drop or click to upload