To create a GridFS collection, open the "Advanced Settings" while creating a new collection ,. There and enable the GridsFS collection option must be enabled. When there. When saving, the entered collection will attached name is extended with ".files" on the name entered and an associated chunks collection will be is created.
Alternatively, you can enter Specifying the extension ".files" extension directly in the collection name . Then, makes the application detects detect by itself , that a GridFS collection should shall be created.
The remaining options of the "Advanced settings" are explained here: http://docs.mongodb.org/manual/reference/method/db.createCollection/
Hinweis |
---|
For When using this functionality is important to note that the naming conventions for MongoDB collections are complied with and the new you need to take care of MongoDB's naming conventions and make sure a database with the same name does not already exist in on the databaseserver. |