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

search for in the

MongoGridFSFile> <MongoGridFS::storeFile
Last updated: Fri, 20 May 2011

view this page in

MongoGridFS::storeUpload

(PECL mongo >=0.9.0)

MongoGridFS::storeUploadSaves an uploaded file to the database

Descripción

public mixed MongoGridFS::storeUpload ( string $name [, string $filename ] )

Parámetros

name

The name field of the uploaded file.

filename

String to be used as filename field in the database.

Valores devueltos

Returns the _id of the uploaded file.



add a note add a note User Contributed Notes MongoGridFS::storeUpload
mark 21-May-2011 09:56
According to this blog: http://www.lightcubesolutions.com/blog/?p=209

it says that the parameter $name is just the name of the post $_FILES array.  So if you have a html input tag with name "someFile", then it gets sent to php in the $_FILES array, and then you just call storeUpload("someFile");

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