In my previous post, I mentioned a way of validating the size of the attachment and I did warn readers that it is a monkey-patch and it needs serious refactoring.
Big refactoring is a result of several small ones and that’s exactly what I have done here. I have extracted the code out and it looks [...]