Closed amkayondo closed 1 year ago
Ability to block direct access to the file, the download has to be signed so as to download it by the user
We're working on this now! Its taking a bit longer than expected, but we know that this is an important feature for many of our users.
the missing part is the frontend part while using nextjs
The docs go over this, and there are also examples for both /pages
and /app
style Next projects in this repository:
Not sure exactly what you would be looking for regarding TRPC integration, but if you can explain your use case in a bit more detail, perhaps I can help.
The docs go over this, and there are also examples for both
/pages
and/app
style Next projects in this repository:Not sure exactly what you would be looking for regarding TRPC integration, but if you can explain your use case in a bit more detail, perhaps I can help.
how do you upload with a custom upload component or like access hooks like handleUpload
example
import { handleUpload } from "@uploadthing/next"
const { data, onSubmit, error, loading } = handleUpload()
const upload = (file) => {
return onSubmit(file)
}
For the custom component you can refer this doc section: https://docs.uploadthing.com/api-reference/react#useuploadthing For the server-side API helpers this one might be helpful: https://docs.uploadthing.com/api-reference/server#utapi
thank you @Mr0Bread 😁
Been working on a client project and I was trying to add upload thing but the docs are not clear on how to do it on the frontend
for the backend here is some code implementation i create
src\server\api\routers\upload.ts
src\server\api\root.ts
the missing part is the frontend part while using nextjs
Feature Requests