MongoGridFS
PHP Manual

MongoGridFS::storeUpload

(PECL mongo >=0.9.0)

MongoGridFS::storeUploadSaves an uploaded file to the database

Description

public MongoId MongoGridFS::storeUpload ( string $name [, array $extra ] )

Parameters

name

The name field of the uploaded file.

extra

Other metadata to add to the file saved.

Return Values

Returns the id of the uploaded file.


MongoGridFS
PHP Manual