S3
Installation
dotnet add package Dosaic.Plugins.Persistence.S3<PackageReference Include="Dosaic.Plugins.Persistence.S3" Version=""/>Configuration
appsettings.yml
appsettings.ymls3:
endpoint: "s3.example.com" # S3 / MinIO endpoint (host[:port])
accessKey: "your-access-key"
secretKey: "your-secret-key"
region: "us-east-1" # optional
useSsl: true # optional, default false
bucketPrefix: "myapp-" # optional, prefixed to every bucket name
healthCheckPath: "" # optional, path appended to endpoint URL for readiness check
useLocalFileSystem: false # optional, use local filesystem instead of S3 (dev/test mode)
localFileSystemPath: "./nodep-s3" # optional, root path used when useLocalFileSystem is trueRegistration and Configuration
Enum-based typed buckets (recommended)
Untyped bucket storage
Manual registration without Dosaic WebHost
Usage
Creating a BlobFile
BlobFileUpload a file
Download file metadata
Stream file content
Delete a file
Compute a SHA-256 hash
Custom MIME-type definitions
Override IFileTypeDefinitionResolver
IFileTypeDefinitionResolverOverride IContentInspector
IContentInspectorMIME type detection and validation
Metadata keys (BlobFileMetaData)
BlobFileMetaData)Constant
Key
Description
FileId encoding
Permission-guarded service wrapper
Example: file download controller
Features
Last updated