I'm new user on mongodb, I'm working with cakephp. I'm trying to test the cakephp's plugin from ichikaway. This plugin allow cakephp working with a mongodb (NoSql database). So, I'm wondering if someone have already tried to do an image upload with ?
Add image file using cakephp and mongodb
320 Views Asked by Martial Assane Palm At
2
There are 2 best solutions below
0

The cakephp-mongodb library does not seem to provide an API for interacting with GridFS. Your best bet is likely to use the MongodbSource::getMongoDb() method to obtain the MongoDB instance and then access the MongoGridFS classes directly. The PHP documentation includes several examples for storing files (including uploaded files) to GridFS.
I try this and it works !