Patch Changes
-
#251
872c8a0
Thanks @markflorkowski! - fix: coherent
file info in all methodsall 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 oldfileName
,
fileSize
,fileUrl
andfileKey
are retained but marked as deprecated
for backwards compatibility, and will be removed in the next major.)utapi.uploadFiles
as well asutapi.uploadFilesFromUrl
-
Updated dependencies
[fe46b81
]:- @uploadthing/shared@5.2.0