what filetypes are supported and how to implement in uploadthing nextjs?
i have the corets set up but was wondering how to allow either a pdf or a docx file upload
2 Replies
use blob and check the file type? or use pdf end point or docx end point i guess.
you can filter by file types in your FileRouter (or MIME types to be exact). this should only allow pdf and word files:
related uploadthing docs: https://docs.uploadthing.com/api-reference/server#route-config
Server – uploadthing
Docs for the best file uploader to date