aheckmann / gridfs-stream

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

Writestream option "content_type" doesn't work out-of-the-box #15

Closed Reggino closed 11 years ago

Reggino commented 11 years ago

The GridStore-option "content_type" doesn't work out-of-the-box for a write stream.

This is, because the option "mode" has a default value of "w+" and the passed mime_type is only honored when using mode "w".

When setting mode explicitly to "w", the content_type does work. A few questions rise:

aheckmann commented 11 years ago

closed by 2685e89