Fix #1130: Can't attach file to contact.