Advanced Topics
This section covers the advanced features, patterns, and internals of @fozooni/nestjs-storage. These guides assume familiarity with the Getting Started and Core Operations sections.
Overview
| Page | Description |
|---|---|
| Range Requests | Stream partial file content with HTTP 206 for video, audio, and resumable downloads |
| Conditional Writes | Optimistic locking with ETag-based putIfMatch and create-only putIfNoneMatch |
| Presigned POST | Browser-to-cloud direct uploads bypassing your server for S3-compatible drivers |
| Multipart Uploads | Chunked uploads for large files with progress tracking and resumability |
| Health Checks | Production readiness probes with @nestjs/terminus integration |
| Interceptors & Pipes | File upload interceptors, extension validators, and magic-byte validation |
| Middleware | LocalSignedUrlMiddleware for HMAC-SHA256 signed URL verification |
| Decorators & DI | Injection tokens, parameter decorators, and custom provider patterns |
| Config Validation | Automatic disk configuration validation and required fields per driver |
| Utilities | Path, file, stream, S3, and visibility helper functions |
| Composing Decorators | Stacking decorator disks for enterprise patterns and best practices |
Prerequisites
All advanced features require @fozooni/nestjs-storage v0.1.0 or later:
bash
pnpm add @fozooni/nestjs-storage@^0.1.0TIP
Each advanced page includes complete, copy-pasteable NestJS examples. Start with whichever feature your application needs — these guides are designed to be read independently.