Skip to main contentModule storage
Source - AzureStorage
- Azure Blob Storage backend via the
object_store crate. - FileMetadata
- Metadata associated with a stored file.
- GcsStorage
- Google Cloud Storage backend via the
object_store crate. - LocalStorage
- Local filesystem storage backend (default for development).
- S3Storage
- Amazon S3 storage backend via the
object_store crate. - UploadHandler
- Handles file uploads with validation, storage, and optional image processing.
- StorageBackend
- Storage backend selected via
SHAPERAIL_STORAGE_BACKEND env var. - StorageError
- Errors that can occur during storage operations.
- parse_max_size
- Parses a human-readable size string (e.g., “5mb”, “100kb”) into bytes.
- validate_mime_type
- Validates a MIME type against an allowed list of extensions/types.