Skip to content

Commit

Permalink
[s3file] stop storing headers in database
Browse files Browse the repository at this point in the history
  • Loading branch information
montmanu committed Mar 10, 2015
1 parent 2eb38b9 commit 9dba96d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions fields/types/s3file/S3FileType.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ s3file.prototype.addToSchema = function() {
size: this._path.append('.size'),
filetype: this._path.append('.filetype'),
url: this._path.append('.url'),
headers: this._path.append('.headers'),
// virtuals
exists: this._path.append('.exists'),
upload: this._path.append('_upload'),
Expand All @@ -114,8 +113,7 @@ s3file.prototype.addToSchema = function() {
path: String,
size: Number,
filetype: String,
url: String,
headers: Object
url: String
});

schema.add(schemaPaths);
Expand All @@ -135,8 +133,7 @@ s3file.prototype.addToSchema = function() {
path: '',
size: 0,
filetype: '',
url: '',
headers: {}
url: ''
});
};

Expand Down Expand Up @@ -438,8 +435,7 @@ s3file.prototype.uploadFile = function(item, file, update, callback) {
path: path,
size: file.size,
filetype: filetype,
url: url,
headers: headers
url: url
};

if (update) {
Expand Down

0 comments on commit 9dba96d

Please sign in to comment.