Skip to content

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

PageDescription
Range RequestsStream partial file content with HTTP 206 for video, audio, and resumable downloads
Conditional WritesOptimistic locking with ETag-based putIfMatch and create-only putIfNoneMatch
Presigned POSTBrowser-to-cloud direct uploads bypassing your server for S3-compatible drivers
Multipart UploadsChunked uploads for large files with progress tracking and resumability
Health ChecksProduction readiness probes with @nestjs/terminus integration
Interceptors & PipesFile upload interceptors, extension validators, and magic-byte validation
MiddlewareLocalSignedUrlMiddleware for HMAC-SHA256 signed URL verification
Decorators & DIInjection tokens, parameter decorators, and custom provider patterns
Config ValidationAutomatic disk configuration validation and required fields per driver
UtilitiesPath, file, stream, S3, and visibility helper functions
Composing DecoratorsStacking 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.0

TIP

Each advanced page includes complete, copy-pasteable NestJS examples. Start with whichever feature your application needs — these guides are designed to be read independently.

Released under the MIT License.