Clarification needed for uploadthing middleware
I'm trying out uploadthing and am trying to integrate it with Clerk for authentication. In the docs (url:
Can anyone translate that for me please. I have one middleware.ts in the root direction - what is meant my 'each file route' does that mean I put a middleware.ts in the directory that contains my page.tsx (I'm using app not pages with t3 app and nextjs)
Many thanks.
docs.uploadthing.com/concepts/auth-security#protecting-unauthenticated-users-from-uploading-files) it says:Protecting unauthenticated users from uploading files
You can protect unauthenticated users from uploading files via the .middleware() function in each file route.Can anyone translate that for me please. I have one middleware.ts in the root direction - what is meant my 'each file route' does that mean I put a middleware.ts in the directory that contains my page.tsx (I'm using app not pages with t3 app and nextjs)
Many thanks.
