Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include metadata in saved file response

  • Loading branch information...
commit f0b7d85c251871ec2d2e7c76296c29e98319b5b3 1 parent bd8d754
@kriszyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  media.js
View
2  media.js
@@ -142,7 +142,7 @@ exports.saveFile = function(file, directives){
}
return when(exports.getFileModel().put(file, directives), function(result){
var id = result.id || result;
- result = {id: id};
+ result = {id: id, getMetadata: result.getMetadata};
Object.defineProperty(result, "getMetadata",{
value: function(){
return metadata;
Please sign in to comment.
Something went wrong with that request. Please try again.