Nestjs file uploads

From HoangNguyen0403/agent-skills-standard · View interactive version

Nestjs file uploads is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Validate and stream file uploads securely with Validation and S3 streaming in NestJS. Use when implementing secure file uploads, validation, or S3 streaming in NestJS.

How to use this skill

Skill file

File Upload Patterns

**Priority: P0 (CRITICAL)**

Streaming (Scalability)

1. Client requests Signed URL from API.

2. Client uploads directly to S3/GCS (Bypassing API server completely).

3. Pro Tip: Only approach to scale file uploads infinitely.

Processing

1. Upload file.

2. Push FileUploadedEvent to Queue (BullMQ).

3. Worker downloads, resizes/converts, and re-uploads.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.