I built a custom document storage system using Next.js and AWS S3. I want to use Zapier Webhooks to upload documents directly into my application.
What I need:
- Zapier webhook sends payload (file attachment, file name, description) to Next.js API endpoint.
- My Next.js API downloads the file, uploads it to AWS S3, and saves details in my database.
Questions:
- How do I configure Zapier to send files and metadata correctly?
- What's the best practice for handling and securing this Next.js API route?