WebAPI/WebMMS: Difference between revisions

Line 92: Line 92:
   }
   }


== MmsAttachment ==
== 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 MmsAttachment([data], {type: "application/video"});
   *  message.attachments["movie.mov"] = new Blob([data], {type: "application/video"});
   *  delete message.attachments["picture.png"];
   *  delete message.attachments["picture.png"];
   */
   */
canmove, Confirmed users
725

edits