The function is now trivial and cannot fail, so all error handling in its caller can be removed.
Attach a file by drag & drop or click to upload