MongoDB
PHP Manual

MongoDB::getGridFS

(PECL mongo >=0.9.0)

MongoDB::getGridFSFetches toolkit for dealing with files stored in this database

Description

public MongoGridFS MongoDB::getGridFS ([ string $arg1 = "fs" [, string $arg2 = NULL ]] )

Parameters

arg1

If the only argument, the prefix for the files and chunks collections. Otherwise, the name of the files collection.

arg2

Name of the chunks collection.

Return Values

Returns a new gridfs object for this database.


MongoDB
PHP Manual