canmove, Confirmed users
725
edits
Line 92: | Line 92: | ||
} | } | ||
== | == MmsAttachmentStorage == | ||
/** | /** | ||
* This object implements a mapping to look up attachments by their name. | * This object implements a mapping to look up attachments (blobs) by their name. | ||
* | * | ||
* var text = message.attachments["text.txt"]; | * var text = message.attachments["text.txt"]; | ||
* message.attachments["movie.mov"] = new | * message.attachments["movie.mov"] = new Blob([data], {type: "application/video"}); | ||
* delete message.attachments["picture.png"]; | * delete message.attachments["picture.png"]; | ||
*/ | */ |