Use this function instead of CheckError() when we already know an error has occurred.
Attach a file by drag & drop or click to upload