This implements real error handling, and avoids calling CancelInternal() from this code path.
Attach a file by drag & drop or click to upload