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.
public __construct ( MongoDB $db, string $prefix = "fs", mixed $chunks = null ) | ||
$db | MongoDB | Database |
$prefix | string | [optional] Optional collection name prefix. |
$chunks | mixed | [optional] |