Add support for attachment file names

Send, receive, and save attachment filenames. Use them as suggested
names when saving files.

// FREEBIE
This commit is contained in:
lilia
2017-04-18 11:26:05 -07:00
parent a256f17e19
commit fc514aa96f
5 changed files with 18 additions and 2 deletions

View File

@@ -91,6 +91,10 @@
}
},
suggestedName: function() {
if (this.model.fileName) {
return this.model.fileName;
}
var suggestion = 'signal';
if (this.timestamp) {
suggestion += moment(this.timestamp).format('-YYYY-MM-DD-HHmmss');