heapsource/mongoose-attachments — pull request #36 by 902Labs (2013-10-26 04:37:33+00:00)
Title: Added support for new optional options boolean argument "idAsDirectory"....

Allow you to store files into a sub-directory based on the image id instead of having everything at top level. The storage choice must support folder creation.