What is the recommended way of handling file uploads to the database using Play!2 with Scala?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Depending on your specific requirements, MongoDB's GridFS will store files for you in a much more efficient and scalable manner than any relational database and filesystem.
http://www.mongodb.org/display/DOCS/GridFS
There are plenty of MongoDB plugins for Play that support GridFS.