Remove unnecessary code and add some error explanations
Attach a file by drag & drop or click to upload