github pingdotgg/uploadthing uploadthing@6.6.0

Minor Changes

  • #705 a919d5a Thanks @juliusmarminge! - feat: add client headers option

    this primarily allows you to authenticate the client when your server is deployed separate from your client:

    import { genUploader } from "uploadthing/client";
    
    const uploadFiles = genUploader<OurFileRouter>({
      url: "https://my-server.com",
    });
    
    uploadFiles("endpoint", {
      headers: async () => {
        const token = await getToken();
        return { Authorization: `Bearer ${token}` };
      },
    });

Patch Changes

Don't miss a new uploadthing release

NewReleases is sending notifications on new releases.