🎉 Ryft Explorer beta is released. Learn more →
AboutAboutProtocol Explorer ↗Protocol Explorer ↗ (opens in a new tab)
  • Introduction
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Introduction
  • About
    • Get Started
    • Installation
      • Createconversation
      • Creategroup
      • Sendmessage
      • Setgroupmembers
      • Updategroup
      • Setfollow
      • Setnotificationsreadtime
      • Updateprofile
      • Getpost
      • Getposts
      • Getprofile
      • Getreaction
      • Connect
      • Decryptmessage
      • Logout
      • Createpost
      • Deletepost
      • Editpost
      • React
      • Uploadmedia
    • Configuration
    • Overview
    • Points
    • Installation
    • App Studio
    • Decentralized Identify
    • Magma
    • Rules Engine
    • Tectonix
    • UI Kits
    • Video
    • Overview
  • Protocol Explorer ↗ (opens in a new tab)

On This Page

  • Returns
Question? Give us feedback → (opens in a new tab)Edit this page
API
write
Uploadmedia

ryft.uploadMedia()

Used to upload a new media

let res = await ryft.uploadMedia(file);

Returns

{
  status: 200,
  result: {
    url: "ipfs://Qm......e0",
    gateway: "https://.../ipfs"
  }
}
ReactConfiguration

Ryft | Docs