Currently, the limit for the number of attachments and images that can be uploaded is soft meaning there may be cases where it may be surpassed but not by a huge margin. One way to address this is to use a transaction and do all of the operations as part of it.