Code was a bit messy so this commit improves it without changing any logic
Attach a file by drag & drop or click to upload