AbstractProtected_Protected_Protected_Protected_AbstractcopyAbstractcreateAbstractdeleteDeletes a file from the backend storage.
The target file.
True if successful.
AbstractdownloadDownloads a remote file to a local destination.
File footprint to download.
Download configuration and destination path.
A promise resolving to the local file path or raw data.
Extracts the first page of a document (e.g. PDF) via ImageMagick, resizes it, and uploads it as a thumbnail.
Original document footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Downloads an image, generates resized thumbnails via sharp, and uploads them back.
Original image footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Entry point for thumbnail generation. Analyzes the content type and automatically delegates to the appropriate generation strategy (Image, Video, or Document).
Target file footprint.
Desired dimensions.
The generated thumbnail map, or an empty object if unsupported/failed.
Extracts a single frame from a remote video via ffmpeg, resizes it, and uploads the frame as an image thumbnail.
Original video footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Computes statistics for a given bucket.
Optionalbucket: stringTarget bucket name.
Optionalprefix: stringOptional directory prefix.
A promise resolving to bucket statistics.
AbstractgetReturns the underlying SDK or driver instance.
The raw storage client.
AbstractgetAbstractgetConnects to the backend and returns a Node Readable stream of the file content.
Target file.
A promise resolving to the ReadStream.
AbstractgetGenerates a direct-to-provider upload URL, bypassing the application server.
The intended file footprint.
OptionalexpiresIn: numberExpiration of the upload link.
AbstractgetGenerates a raw, natively routable provider URL (e.g., S3 presigned URL).
The target file footprint.
OptionalexpiresIn: numberSignature expiration in seconds.
Optionalaction: stringIntended action ('read', 'write').
Optionalextra: anyProvider-specific overrides (e.g. { native: true }).
A promise resolving to the final native URL payload.
ProtectedisChecks if the file is a video or audio stream based on its MIME type or file extension.
Target file.
True if the file represents a video or audio asset.
AbstractmoveAbstractstreamDirectly pipes the remote file to a given local stream or HTTP response.
File footprint.
Output writable stream.
Base abstract class defining the contract for all storage adapters. Implements common logic for media thumbnailing and URL routing via gateways.