Minor Changes
-
#587
83e544d
Thanks @juliusmarminge! - feat: add ability to provide custom identifiers when uploading filesalso adds ability for UTApi methods to filter based on custom identifiers
// bind custom id when uploading f(["image"]).middleware(({ files }) => { const filesWithIds = files.map((f) => ({ ...f, customId: uuid(), })); return { my: "metadata", [UTFiles]: filesWithIds }; }); // filter based on custom id const utapi = new UTApi(); utapi.getFileUrl("my-uuid", { keyType: "customId" }); // or, set a global keyType default const utapi = new UTApi({ defaultKeyType: "customId" }); utapi.getFileUrl("my-uuid");
-
#598
04d145e
Thanks @juliusmarminge! - feat: use presigned post uploads for small files to reduce overhead time of multipart -
#602
3fe3271
Thanks @juliusmarminge! - feat: addUTFile
utility to simplify usage of Blobs with properties
Patch Changes
-
352eea6
Thanks @juliusmarminge! - chore: refactor bundling #579 -
#587
83e544d
Thanks @juliusmarminge! - fix: make pagination object onutapi.listFiles
optional -
Updated dependencies [
83e544d
,352eea6
,04d145e
]:- @uploadthing/shared@6.3.0
- @uploadthing/mime-types@0.2.3