uploadthing replacing name and adding customId in middleware fails to run
This middleware does not run, despite this being close to what is provided in the documentation for changing file names and adding
customId
s (https://docs.uploadthing.com/file-routes#middleware). Logging the error provided by useUploadThing()
's onUploadError
gives UploadThingError: Failed to run middleware... Caused by: Object { … }
File Routes - UploadThing Docs
File Routes is a core concept of UploadThing that defines what your users can upload
0 Replies