Minor Changes
-
#796
24cdb51
Thanks @juliusmarminge! - feat: acceptrouteConfig
directly inuploadthing/client.generateMimeTypes
You no longer have to combine
generatePermittedFileTypes
andgenerateMimeTypes
:- accept={generateMimeTypes( - generatePermittedFileTypes(routeConfig).fileTypes, - ).join(",")} + accept={generateMimeTypes(routeConfig ?? {}).join(",")}
Patch Changes
- #796
24cdb51
Thanks @juliusmarminge! - feat: addadditionalProperties
option to file route configs to allow configurations such as image dimension / aspect ratio to propagate down to client