Attachments with application give error when not using redirect
When not using the redirect feature the application form gives an error that it cannot send the attachment. It looks like the function to send the email is fired twice where the second time the attachment is already deleted.