Server example of UTApi.uploadFiles with setting a customId?
I can't see to find any examples or docs around this;
How can you set a customId on upload from the server?
4 Replies
the options object passed has
customId
property which you can add
thus making your code to be
uploadthing/server - UploadThing Docs
Server bindings for UploadThing.
How do you line up the types?
Object literal may only specify known properties, and 'customId' does not exist in type 'FilePropertyBag'I ignore this error and on the upload the response still shows
customId: null
can you log to see if the
customId
is null or not when you're uploading
and see if you're importing correctly from the server
I don't know much about the types error
i think this might be the case
pass your uploadthingFile
inside an array when uploading it