downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoGridFS::storeUpload> <MongoGridFS::storeBytes
[edit] Last updated: Fri, 10 Feb 2012

view this page in

MongoGridFS::storeFile

(PECL mongo >=0.9.0)

MongoGridFS::storeFileStores a file in the database

Description

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

Parameters

filename

The name of the file.

extra

Other metadata to add to the file saved.

options

Options for the store.

  • "safe"

    Check that this store succeeded.

Return Values

Returns the _id of the saved object.

Errors/Exceptions

Throws MongoCursorException if the "safe" option is set and the insert fails.



add a note add a note User Contributed Notes MongoGridFS::storeFile
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites