Skip to content

@uploadthing/[email protected]

Compare
Choose a tag to compare
@t3dotgg t3dotgg released this 08 Aug 22:47
· 474 commits to main since this release
cb5c09b

Patch Changes

  • #251
    872c8a0
    Thanks @markflorkowski! - fix: coherent
    file info in all methods

    all methods now receives a similarly shaped object as the serverside
    onUploadComplete callback:

    export type UploadFileResponse = {
      name: string;
      size: number;
      key: string;
      url: string;
    };

    Updated methods are:

    • onClientUploadComplete in hooks as well as components (The old fileName,
      fileSize, fileUrl and fileKey are retained but marked as deprecated
      for backwards compatibility, and will be removed in the next major.)
    • utapi.uploadFiles as well as utapi.uploadFilesFromUrl
  • Updated dependencies
    [fe46b81]: