On-demand courier that specializes in delivery for all your needs. We are Food Safety, and HIPPA Certified. Our team can meet all your Bay Area delivery needs.
Add File Upload Functionality using UploadThing API
Overview
This PR implements file upload functionality using UploadThing API, allowing users to attach files to catering orders and on-demand orders in the platform.
Changes Made
1. Schema Updates
Updated Prisma schema to support file attachments:
Add File Upload Functionality using UploadThing API
Overview
This PR implements file upload functionality using UploadThing API, allowing users to attach files to catering orders and on-demand orders in the platform.
Changes Made
1. Schema Updates
Updated Prisma schema to support file attachments:
2. New API Routes
Upload Route Configuration (
app/api/uploadthing/core.ts
):File Association Route (
app/api/files/route.ts
):3. Frontend Components
File Upload Component (
components/FileUpload.tsx
):4. Integration in Order Forms
Usage in Catering Request Form:
Testing Steps
Dependencies Added
Environment Variables Added
Notes