Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include filename in metadata

  • Loading branch information...
commit 4b2aa35b49cef817c04012e264e7727d4f86c4c8 1 parent 03bd130
@kriszyp authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  store/mongodb-file.js
View
3  store/mongodb-file.js
@@ -20,7 +20,8 @@ module.exports = function(options){
var metadata = {
"content-type": object.type,
"content-length": contents.buffer.length,
- "content-disposition": 'attachment'
+ "content-disposition": 'attachment',
+ "filename": object.filename
};
metadata.alternates = [object];
object.forEach.binary = true;
Please sign in to comment.
Something went wrong with that request. Please try again.