aheckmann / gridfs-stream

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

Inconsistency: content_type and contentType #115

Open 360disrupt opened 7 years ago

360disrupt commented 7 years ago
gfs.files.find(newFilter).toArray (err, files)->
 #returns contentType instead of content_type

while gfs.createWriteStream(file) only accepts content_type not contentType and falls back to default value if contentType is submitted.

This requires mapping of param contentType to content_type in e.g. migrations

Expected behaviour: gfs.createWriteStream(file) accepts contentType.