Depending on the environment, various exceptions can be risen, so be tolerant regarding the exception type.
Attach a file by drag & drop or click to upload