Issue with UploadThing after updating from v5.5 to v7
Hi everyone! 👋
I recently updated UploadThing from v5.5 to v7 and followed the documentation to update my code. However, I’m encountering an issue when trying to upload an image using a custom component. Here’s my setup:
Custom Component:
Here’s how I use it in my component:
Problem
When I try to upload an image:
The upload button is transparent.
Clicking the button triggers the following logs:
It seems like there's a 404 error on the route /api/uploadthing?slug=courseImage.
1 Reply
That would be an issue on your end, your api routes might be protected, or you might have placed the route handler in the wrong place/made a typo