Lets try to use a different approach here for not to have restrictions in the number of attached files. An option would be a new model for attached files with a reference (FK) to the mentions.