Skip to content
Compare
Choose a tag to compare
@t3dotgg t3dotgg released this 25 May 00:41
· 71 commits to main since this release
ce56e58

Minor Changes

  • #796 24cdb51 Thanks @juliusmarminge! - feat: accept routeConfig directly in uploadthing/client.generateMimeTypes

    You no longer have to combine generatePermittedFileTypes and generateMimeTypes:

    - accept={generateMimeTypes(
    -   generatePermittedFileTypes(routeConfig).fileTypes,
    - ).join(",")}
    + accept={generateMimeTypes(routeConfig ?? {}).join(",")}

Patch Changes

  • #796 24cdb51 Thanks @juliusmarminge! - feat: add additionalProperties option to file route configs to allow configurations such as image dimension / aspect ratio to propagate down to client