Show size of files even if size not precomputed for attachment
FREEBIE
This commit is contained in:
parent
9ba5aaa54d
commit
12b2674bde
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@
|
||||||
},
|
},
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
this.blob = new Blob([this.model.data], {type: this.model.contentType});
|
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) {
|
if (options.timestamp) {
|
||||||
this.timestamp = options.timestamp;
|
this.timestamp = options.timestamp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue