PHP - Manual: MongoGridFS::__construct
2024-12-23
(PECL mongo >=0.9.0)
MongoGridFS::__construct — Creates new file collections
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":
$fs = new MongoGridFS($db, "myfiles");
db
Database.
files
Optional collection name prefix.
官方地址:https://www.php.net/manual/en/mongogridfs.construct.php