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.