Show size of files even if size not precomputed for attachment

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-11 15:24:13 -07:00
parent 9ba5aaa54d
commit 12b2674bde

View file

@ -71,7 +71,9 @@
},
initialize: function(options) {
this.blob = new Blob([this.model.data], {type: this.model.contentType});
if (!this.model.size) {
this.model.size = this.model.data.byteLength;
}
if (options.timestamp) {
this.timestamp = options.timestamp;
}