It looks like attachment size is in bits, so we're converting MAX_ATTACHMENT_MB from megabytes to bits before comparing.

You would get slightly better performance by doing a single conversion of size using a bit shift, then comparing, but it shouldn't matter for a handful of attachements.