MongoGridFS::__construct
Creates new file collections
&reftitle.description;
MongoGridFS::__construct
MongoDBdb
stringfiles&null;
stringchunks&null;
Files as stored across two collections, the first containing file meta information, the
second containing chunks of the actual file. By default, fs.files and fs.chunks are the
collection names used.
Use one argument to specify a prefix other than "fs":
uses myfiles.files and myfiles.chunks collections.
Use two arguments to fully specify the collection names:
uses myfiles and mychunks collections.
&reftitle.parameters;
db
Database.
files
Optional files collection name. If chunks is not given,
files is used as both collections' prefix.
chunks
Optional chunks collection name.