flowjs / flow-php-server

flow.js php server library, validates uploaded chunks and safely merges all chunks to a single file
http://flowjs.github.io/ng-flow/
MIT License
245 stars 42 forks source link

update mongo from legacy mongo lib to mongodb/mongodb #48

Closed daniel-sc closed 1 year ago

daniel-sc commented 2 years ago

the current implementation is based on the obsolete mongo lib. this should be changed to mongodb/mongodb. I'd be willing to provide a PR :)

AidasK commented 2 years ago

sure, please do

borakayalar commented 1 year ago

I wait, I hope @AidasK updates it. Also I need basic implemantion code with "$yourGridFs"

AidasK commented 1 year ago

Maybe @daniel-sc could help? It looks he was the latest dev to use this store.

borakayalar commented 1 year ago

Thanks @AidasK , @daniel-sc, I wait your response I hope you help me :)

daniel-sc commented 1 year ago

@AidasK This issue should be closed as it was resolved with #49

@borakayalar usage should be straight forward, as constructor parameter is typed to MongoDB\GridFS\Bucket (see https://github.com/flowjs/flow-php-server/blob/master/src/Flow/Mongo/MongoConfig.php#L18). In case you are not up to date wrt the php mongo drivers: https://www.mongodb.com/docs/php-library/v1.15/