I'm shopping around for a proper forum script (using MyBB - XenForo tops the list of prospects) and this feature would be key -- my site has over 100,000 attachments.
I'd suggest keeping attachments and the gallery separate initially, but give us the option to pull content, selectively or...