Permalink
Browse files

Include filename in metadata

  • Loading branch information...
1 parent 03bd130 commit 4b2aa35b49cef817c04012e264e7727d4f86c4c8 @kriszyp committed Aug 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 store/mongodb-file.js
View
@@ -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;

0 comments on commit 4b2aa35

Please sign in to comment.