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");
MongoGridFS::storeUpload
(PECL mongo >=0.9.0)
MongoGridFS::storeUpload — Saves an uploaded file to the database
Descripción
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.
mark
21-May-2011 09:56
