Optional uploadOptions: TFunction used to upload files or JSON to decentralized storage systems
import { useStorageUpload } from "@thirdweb-dev/react";
export default function Component() {
  const { mutateAsync: upload, isLoading } = useStorageUpload();
  async function uploadData() {
    const filesToUpload = [...];
    const uris = await upload({ data: files });
    console.log(uris);
  }
  return (
    <button onClick={uploadData}>
      Upload
    </button>
  )
}
Generated using TypeDoc
Hook used to upload any files or JSON data to decentralized storage systems like IPFS, using the
storageInterfaceconfigured on theThirdwebProvider