SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a href={this.getDownloadURL(note.noteId)}>
  2.    <span className="downloadAction">
  3.       DOWNLOAD
  4.       <img className="logoImageRight" src={require("../imgs/download.png")} alt="NotFound"/>
  5.    </span>
  6. </a>
  7.      
  8. async getDownloadURL(noteId){
  9.    var attachmentURL;
  10.    const note = await this.getNote(noteId);
  11.    const {attachment} = note;
  12.  
  13.    if(attachment){
  14.       attachmentURL = await Storage.vault.get(attachment);
  15.    }
  16.    return(attachmentURL);
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top