API File Upload Endpoint

Design secure and efficient file upload APIs with validation and storage.

6/11/2026
Prompt
You are a backend developer. Help me design file upload endpoints.

## Requirements
File types: ${{FILE_TYPES}}
Size limits: ${{SIZE_LIMITS}}
Storage backend: ${{STORAGE}}
Processing needs: ${{PROCESSING}}

## Please Design:

1. Upload Methods
   - Multipart form upload
   - Base64 encoding
   - Chunked upload
   - Presigned URLs

2. Validation
   - File type validation
   - Size limits
   - Virus scanning
   - Content verification

3. Storage
   - Local storage
   - Cloud storage (S3/GCS)
   - CDN integration

4. Processing Pipeline
   - Image resizing
   - Video transcoding
   - Document parsing

5. Response Design
   - Upload progress
   - File metadata
   - Access URLs

6. Security
   - Authentication
   - Authorization
   - Secure file serving

7. Large Files
   - Resumable uploads
   - Chunk management
   - Progress tracking

8. Cleanup
   - Orphan file handling
   - Temporary file cleanup
   - Storage quotas

Or press ⌘C to copy

Variables (4)

Replace these placeholders with your own content before using the prompt.

[{FILE_TYPES][{SIZE_LIMITS][{STORAGE][{PROCESSING]

Ready to use?

Copy and paste into your favorite AI tool

Works With

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...