GroupDocs.Viewer.UI.Api.AwsS3.Storage
8.1.1
dotnet add package GroupDocs.Viewer.UI.Api.AwsS3.Storage --version 8.1.1
NuGet\Install-Package GroupDocs.Viewer.UI.Api.AwsS3.Storage -Version 8.1.1
<PackageReference Include="GroupDocs.Viewer.UI.Api.AwsS3.Storage" Version="8.1.1" />
<PackageVersion Include="GroupDocs.Viewer.UI.Api.AwsS3.Storage" Version="8.1.1" />
<PackageReference Include="GroupDocs.Viewer.UI.Api.AwsS3.Storage" />
paket add GroupDocs.Viewer.UI.Api.AwsS3.Storage --version 8.1.1
#r "nuget: GroupDocs.Viewer.UI.Api.AwsS3.Storage, 8.1.1"
#:package GroupDocs.Viewer.UI.Api.AwsS3.Storage@8.1.1
#addin nuget:?package=GroupDocs.Viewer.UI.Api.AwsS3.Storage&version=8.1.1
#tool nuget:?package=GroupDocs.Viewer.UI.Api.AwsS3.Storage&version=8.1.1
GroupDocs.Viewer.UI.Api.AwsS3.Storage
GroupDocs.Viewer.UI.Api.AwsS3.Storage is an Amazon S3 file storage implementation that can be used with GroupDocs.Viewer.UI.Api. It provides seamless integration with AWS S3 for storing and retrieving documents in your GroupDocs.Viewer.UI application.
Installation
To use AWS S3 storage in your ASP.NET Core project:
- Add the required package to your project:
dotnet add package GroupDocs.Viewer.UI.Api.AwsS3.Storage
- Configure AWS S3 storage in your
Startupclass:
using Amazon.S3;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddGroupDocsViewerUI();
builder.Services
.AddControllers()
.AddGroupDocsViewerSelfHostApi()
.AddAwsS3Storage(options =>
{
options.Region = "us-east-1"; // AWS region
options.BucketName = "your-bucket-name";
options.AccessKey = "your-access-key"; // Optional if using AWS credentials
options.SecretKey = "your-secret-key"; // Optional if using AWS credentials
options.S3Config = new AmazonS3Config
{
// Configure additional S3 client settings if needed
};
});
var app = builder.Build();
app
.UseRouting()
.UseEndpoints(endpoints =>
{
endpoints.MapGroupDocsViewerUI(options =>
{
options.UIPath = "/viewer";
options.ApiEndpoint = "/viewer-api";
});
endpoints.MapGroupDocsViewerApi(options =>
{
options.ApiPath = "/viewer-api";
});
});
await app.RunAsync();
Configuration Options
The AWS S3 storage implementation supports the following configuration options:
Region(Required): The AWS region where your S3 bucket is located (e.g., "us-east-1", "eu-west-1").BucketName(Required): The name of your S3 bucket.AccessKey(Optional): AWS access key. If not provided, the AWS SDK will use the default credential provider chain.SecretKey(Optional): AWS secret key. If not provided, the AWS SDK will use the default credential provider chain.S3Config(Optional): Additional configuration for the Amazon S3 client.
AWS Credentials
You can provide AWS credentials in several ways:
Explicit Configuration:
options.AccessKey = "your-access-key"; options.SecretKey = "your-secret-key";Environment Variables:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY
AWS Credentials File:
- Located at
~/.aws/credentials(Linux/Mac) or%UserProfile%\.aws\credentials(Windows)
- Located at
Instance Profile (when running on AWS EC2)
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net6.0
- AWSSDK.S3 (>= 4.0.7.2)
- GroupDocs.Viewer.UI.Core (>= 8.1.1)
-
net8.0
- AWSSDK.S3 (>= 4.0.7.2)
- GroupDocs.Viewer.UI.Core (>= 8.1.1)
GitHub repositories
This package is not used by any popular GitHub repositories.