DotNetBrightener.SimpleUploadService
2025.0.10
See the version list below for details.
dotnet add package DotNetBrightener.SimpleUploadService --version 2025.0.10
NuGet\Install-Package DotNetBrightener.SimpleUploadService -Version 2025.0.10
<PackageReference Include="DotNetBrightener.SimpleUploadService" Version="2025.0.10" />
<PackageVersion Include="DotNetBrightener.SimpleUploadService" Version="2025.0.10" />
<PackageReference Include="DotNetBrightener.SimpleUploadService" />
paket add DotNetBrightener.SimpleUploadService --version 2025.0.10
#r "nuget: DotNetBrightener.SimpleUploadService, 2025.0.10"
#:package DotNetBrightener.SimpleUploadService@2025.0.10
#addin nuget:?package=DotNetBrightener.SimpleUploadService&version=2025.0.10
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2025.0.10
Simple Upload API for ASP.NET Application
© 2025 DotNet Brightener
Installation
Run this in command line:
dotnet add package DotNetBrightener.SimpleUploadService
Usage
1. Register the service
serviceCollection.RegisterSimpleUploadService(builder => {
// configure your upload configuration here
});
2. Upload Path
Default upload folder is {environment.ContentRootPath}/Media. For example, if you deploy the application in /app of the computer, the upload folder will be /app/Media.
You can replace the default upload folder by implementing IUploadFolderPathResolver interface and provide your own logic of determining where to store the uploaded file.
public class TenantBasedUploadPathResolver : IUploadFolderResolver
{
public string UploadRootPath { get; }
public TenantBasedUploadPathResolver(IHostEnvironment hostEnvironment)
{
this.UploadRootPath = hostEnvironment.ContentRootPath;
}
public Task<string> ResolveUploadPath(string uploadPath)
{
return Task.FromResult(uploadPath.Replace('/', Path.DirectorySeparatorChar)
.Replace('\\', Path.DirectorySeparatorChar));
}
}
Resizing image when upload
Implement your own logic for resizing photos by deriving the IImageResizer interface. Then you need to register it by
Extend API with IUploadServiceProvider
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- DotNetBrightener.Plugins.EventPubSub (>= 2025.0.10)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on DotNetBrightener.SimpleUploadService:
| Package | Downloads |
|---|---|
|
DotNetBrightener.UploadService.AzureBlobStorage
Azure Blob Storage Upload API for ASP.NET Core Applications |
|
|
DotNetBrightener.UploadService.ImageOptimizer
An Image Resizer used with DotNetBrightener.SimpleUploadService package. Migrated to SkiaSharp for improved security and performance. |
|
|
DotNetBrightener.UploadService.S3Storage
S3-Compatible Storage Upload Service Provider for ASP.NET Core Applications. Supports AWS S3, Digital Ocean Spaces, Wasabi, MinIO, Backblaze B2, and other S3-compatible storage providers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.0.1-preview-notificati... | 234 | 12/6/2025 |
| 2026.0.1-preview-733 | 94 | 2/6/2026 |
| 2026.0.1-preview-731 | 111 | 2/3/2026 |
| 2026.0.1-preview-728 | 118 | 1/20/2026 |
| 2026.0.1-preview-723 | 101 | 1/15/2026 |
| 2026.0.1-preview-721 | 106 | 1/15/2026 |
| 2026.0.1-preview-717 | 126 | 1/5/2026 |
| 2026.0.1-preview-713 | 473 | 12/10/2025 |
| 2026.0.1-preview-700 | 246 | 12/7/2025 |
| 2026.0.1-preview-689 | 132 | 12/6/2025 |
| 2026.0.1-preview-676 | 699 | 12/2/2025 |
| 2026.0.1-preview-671 | 144 | 11/29/2025 |
| 2026.0.1-preview-670 | 135 | 11/29/2025 |
| 2026.0.1-preview-669 | 140 | 11/29/2025 |
| 2026.0.1-preview-667 | 200 | 11/27/2025 |
| 2026.0.1-preview-665 | 192 | 11/27/2025 |
| 2026.0.1-preview-664 | 195 | 11/27/2025 |
| 2025.0.10 | 220 | 11/25/2025 |