One more thing, @Pulkit_Jain_ Does this happen, when we click on OK on the alert which says the file is not supported and submit the form again then it submits.?? Update: Don't bother, submitting again was successful because the attachment was deleted afterwards.