Protected_Protected_Protected_Protected_Deletes an object from the S3 Bucket.
The file to remove.
A promise resolving to true on success.
Downloads an S3 object and writes it directly to the local filesystem.
The remote file.
Local download path instructions.
A promise resolving to the local file path.
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 in S3. Iterates over all objects in the bucket to compute total count and size.
Optionalbucket: stringTarget bucket name.
Optionalprefix: stringA promise resolving to bucket statistics.
Exposes the underlying AWS S3 Client instance.
The S3Client instance.
Downloads an S3 object and returns it as a Node.js Readable stream.
The target file.
A promise resolving to the ReadStream.
Generates a presigned PUT URL allowing clients to upload directly to S3, bypassing the backend.
The requested upload file destination.
Token expiration in seconds.
A promise resolving to the upload URL instructions.
Generates a temporary, presigned GET URL for public or secure access.
Target file.
URL expiration time in seconds.
The requested action ('read', etc.).
Extra parameters such as 'cacheControl'.
A promise resolving to the generated URL and expiration 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.
Directly pipes an S3 object to an external HTTP response or stream.
Target file.
The response or writable stream.
The piped stream instance.
Helper utility converting a Node.js Stream into a raw Buffer. Required for S3 payloads when streaming sizes are indeterminate.
The input stream.
A promise resolving to the concatenated Buffer.
Validates the connection to the configured S3 endpoint by attempting to list buckets.
True if the connection succeeds and buckets are accessible.
Storage adapter implementation for AWS S3 compatible services. Implements direct stream uploads, presigned URLs, and multipart handling.