Handle errors and notify the user while trying to save an attachment