MongoGridFS
PHP Manual

MongoGridFS::storeFile

(PECL mongo >=0.9.0)

MongoGridFS::storeFileStores a file in the database

Description

public MongoId MongoGridFS::storeFile ( string $filename [, array $extra= array() ] )

Parameters

filename

The name of the file.

extra

Other metadata to add to the file saved.

Return Values

Returns the database id for the file.


MongoGridFS
PHP Manual