aheckmann / gridfs-stream

Easily stream files to and from MongoDB
MIT License
615 stars 120 forks source link

createReadStream fails when filename provided #7

Closed DenysVuika closed 11 years ago

DenysVuika commented 11 years ago

every time I invoke createReadStream with file name I get crash with error 'myfile does not exist' var readstream = gfs.createReadStream('myfile') However everything works fine if providing "_id" value. Is there anything can be done to fix the problem?

aheckmann commented 11 years ago

fixed in 0.4 - see the readme for changes to the api.