The code in the view is lighter, and the generic part could have been moved to utils
Attach a file by drag & drop or click to upload