taking into account cases where attachment doesn't have a filename