ConvergeERP.Shared.Documents.S3
0.0.1-beta
This is a prerelease version of ConvergeERP.Shared.Documents.S3.
dotnet add package ConvergeERP.Shared.Documents.S3 --version 0.0.1-beta
NuGet\Install-Package ConvergeERP.Shared.Documents.S3 -Version 0.0.1-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConvergeERP.Shared.Documents.S3" Version="0.0.1-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConvergeERP.Shared.Documents.S3" Version="0.0.1-beta" />
<PackageReference Include="ConvergeERP.Shared.Documents.S3" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConvergeERP.Shared.Documents.S3 --version 0.0.1-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConvergeERP.Shared.Documents.S3, 0.0.1-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ConvergeERP.Shared.Documents.S3@0.0.1-beta
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ConvergeERP.Shared.Documents.S3&version=0.0.1-beta&prerelease
#tool nuget:?package=ConvergeERP.Shared.Documents.S3&version=0.0.1-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ConvergeERP.Shared.Documents.S3
AWS S3 adapter for document storage in ConvergeERP applications.
Installation
dotnet add package ConvergeERP.Shared.Documents.S3
Configuration
Add to appsettings.json:
{
"AWS": {
"S3": {
"BucketName": "your-bucket-name",
"Region": "us-east-1",
"UploadUrlExpirationSeconds": 3600,
"DownloadUrlExpirationSeconds": 3600,
"MaxFileSizeBytes": 52428800,
"KeyPrefix": "documents/"
}
}
}
For LocalStack/MinIO (Development)
{
"AWS": {
"S3": {
"BucketName": "local-bucket",
"Region": "us-east-1",
"ServiceUrl": "http://localhost:4566",
"ForcePathStyle": true
}
}
}
Setup
In Program.cs:
using ConvergeERP.Shared.Documents.S3.Extensions;
builder.Services.AddS3FileStorage(builder.Configuration);
Or with inline configuration:
builder.Services.AddS3FileStorage(options =>
{
options.BucketName = "my-bucket";
options.Region = "eu-west-1";
});
Usage
public class UploadController : ControllerBase
{
private readonly IFileStorageService _storage;
public UploadController(IFileStorageService storage)
{
_storage = storage;
}
[HttpPost("request-upload")]
public async Task<IActionResult> RequestUpload(
[FromBody] RequestUploadDto dto,
[FromHeader] Guid companyId)
{
// Generate pre-signed URL for direct client upload
var result = await _storage.GenerateUploadUrlAsync(
companyId,
dto.FileName,
dto.ContentType);
return Ok(new
{
uploadUrl = result.UploadUrl,
fileKey = result.FileKey,
expiresAt = result.ExpiresAt
});
}
[HttpGet("download/{fileKey}")]
public async Task<IActionResult> GetDownloadUrl(string fileKey)
{
var url = await _storage.GenerateDownloadUrlAsync(fileKey);
return Ok(new { downloadUrl = url });
}
}
Upload Flow
- Client requests upload URL via your API
- Your API generates pre-signed URL using
GenerateUploadUrlAsync - Client uploads file directly to S3 using pre-signed URL
- Client confirms upload completion to your API
- Your API verifies file exists using
FileExistsAsync
Related Packages
ConvergeERP.Shared.Documents.Core- Core interfaces and entitiesConvergeERP.Shared.Documents- EF Core implementation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AWSSDK.Core (>= 4.0.9.5)
- AWSSDK.S3 (>= 4.0.25.1)
- ConvergeERP.Shared.Documents.Core (>= 0.0.1-beta)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1-beta | 88 | 6/19/2026 |