DotNetBrightener.SimpleUploadService 2025.0.10

There is a newer prerelease version of this package available.
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
                    
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="DotNetBrightener.SimpleUploadService" Version="2025.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetBrightener.SimpleUploadService" Version="2025.0.10" />
                    
Directory.Packages.props
<PackageReference Include="DotNetBrightener.SimpleUploadService" />
                    
Project file
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 DotNetBrightener.SimpleUploadService --version 2025.0.10
                    
#r "nuget: DotNetBrightener.SimpleUploadService, 2025.0.10"
                    
#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 DotNetBrightener.SimpleUploadService@2025.0.10
                    
#: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=DotNetBrightener.SimpleUploadService&version=2025.0.10
                    
Install as a Cake Addin
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2025.0.10
                    
Install as a Cake Tool

Simple Upload API for ASP.NET Application

© 2025 DotNet Brightener

NuGet Version

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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... 227 12/6/2025
2026.0.1-preview-net10-upgr... 195 11/25/2025
2026.0.1-preview-net10-upgr... 193 11/25/2025
2026.0.1-preview-net10-upgr... 188 11/24/2025
2026.0.1-preview-net10-upgr... 215 11/24/2025
2026.0.1-preview-723 0 1/15/2026
2026.0.1-preview-721 0 1/15/2026
2026.0.1-preview-717 120 1/5/2026
2026.0.1-preview-713 467 12/10/2025
2026.0.1-preview-700 236 12/7/2025
2026.0.1-preview-689 126 12/6/2025
2026.0.1-preview-676 692 12/2/2025
2026.0.1-preview-671 136 11/29/2025
2026.0.1-preview-670 128 11/29/2025
2026.0.1-preview-669 130 11/29/2025
2026.0.1-preview-667 195 11/27/2025
2026.0.1-preview-665 186 11/27/2025
2026.0.1-preview-664 187 11/27/2025
2026.0.1-preview-660 201 11/25/2025
2025.0.10 208 11/25/2025
2025.0.10-preview-628 416 11/20/2025
2025.0.10-preview-605 304 11/17/2025
2025.0.10-preview-602 302 11/17/2025
2025.0.10-preview-581 317 11/11/2025
2025.0.10-preview-559 203 10/29/2025
2025.0.10-preview-557 213 10/27/2025
2025.0.9 218 10/26/2025
2025.0.9-preview-553 189 10/26/2025
2025.0.9-preview-539 141 10/12/2025
2025.0.9-preview-535 194 10/8/2025
2025.0.9-preview-509 213 10/2/2025
2025.0.9-preview-508 196 10/2/2025
2025.0.9-preview-487 211 9/29/2025
2025.0.9-preview-481 205 9/29/2025
2025.0.9-preview-473 184 9/28/2025
2025.0.8 233 9/23/2025
2025.0.6 239 9/22/2025
2025.0.6-preview-455 220 9/22/2025
2025.0.6-preview-454 331 9/17/2025
2025.0.6-preview-441 174 9/14/2025
2025.0.6-preview-440 173 9/14/2025
2025.0.6-preview-406 209 9/2/2025
2025.0.6-preview-401 193 9/2/2025
2025.0.6-preview-400 201 9/2/2025
2025.0.6-preview-369 252 8/27/2025
2025.0.6-preview-368 233 8/27/2025
2025.0.6-preview-334 212 8/18/2025
2025.0.6-preview-333 153 7/27/2025
2025.0.6-preview-332 507 7/24/2025
2025.0.6-preview-331 528 7/24/2025
2025.0.6-preview-328 498 7/24/2025
2025.0.6-preview-327 392 7/21/2025
2025.0.6-preview-326 382 7/21/2025
2025.0.6-preview-325 290 7/20/2025
2025.0.6-preview-324 280 7/20/2025
2025.0.6-preview-322 286 7/20/2025
2025.0.6-preview-321 269 7/19/2025
2025.0.6-preview-320 287 7/19/2025
2025.0.6-preview-319 203 7/17/2025
2025.0.6-preview-317 192 7/17/2025
2025.0.6-preview-316 197 7/17/2025
2025.0.6-preview-315 191 7/17/2025
2025.0.6-preview-314 182 7/17/2025
2025.0.6-preview-313 203 7/17/2025
2025.0.6-preview-312 199 7/16/2025
2025.0.5 243 7/10/2025
2025.0.5-preview-307 122 7/5/2025
2025.0.4 154 7/5/2025
2025.0.4-preview-305 131 7/4/2025
2025.0.4-preview-304 189 7/1/2025
2025.0.4-preview-299 175 5/31/2025
2025.0.4-preview-298 143 5/30/2025
2025.0.4-preview-296 200 5/30/2025
2025.0.4-preview-295 212 5/29/2025
2025.0.4-preview-293 192 5/26/2025
2025.0.4-preview-292 207 5/26/2025
2025.0.3 208 2/10/2025
2025.0.3-preview-288 160 2/10/2025
2025.0.2 213 1/21/2025
2025.0.2-preview-278 150 1/21/2025
2025.0.2-preview-277 169 12/16/2024
2025.0.1-rc-243301701 396 11/25/2024
2024.0.14.6 207 11/25/2024
2024.0.14.6-rc-243031001 207 10/29/2024
2024.0.14.6-rc-243030701 182 10/29/2024
2024.0.14.6-rc-242840501 145 10/10/2024
2024.0.14.6-rc-242820305 169 10/8/2024
2024.0.14.6-rc-242771401 225 10/3/2024
2024.0.14.6-rc-242770501 159 10/3/2024
2024.0.14.6-rc-242770201 165 10/3/2024
2024.0.14.6-rc-242761801 170 10/2/2024
2024.0.14.6-rc-242761601 163 10/2/2024
2024.0.14.6-rc-242761501 167 10/2/2024
2024.0.14.6-rc-242761401 166 10/2/2024
2024.0.14.6-rc-242760701 178 10/2/2024
2024.0.14.6-rc-242751002 171 10/1/2024
2024.0.14.6-rc-242750901 185 10/1/2024
2024.0.14.6-rc-242750502 170 10/1/2024
2024.0.14.6-rc-242750201 191 10/1/2024
2024.0.14.6-rc-242741501 176 9/30/2024
2024.0.14.6-rc-242730701 187 9/29/2024
2024.0.14.6-preview-2730501 152 9/29/2024
2024.0.14.6-preview-2701501 193 9/26/2024
2024.0.14.6-preview-2620901 219 9/18/2024
2024.0.14.6-preview-2570701 196 9/13/2024
2024.0.14.6-preview-2510703 212 9/7/2024
2024.0.14.6-preview-2480501 202 9/4/2024
2024.0.14.6-preview-2430401 194 8/30/2024
2024.0.14.6-preview-242730701 147 9/29/2024
2024.0.14.6-preview-2421703 190 8/29/2024
2024.0.14.6-preview-2421701 178 8/29/2024
2024.0.14.6-preview-2420901 167 8/29/2024
2024.0.14.6-preview-2390101 201 8/26/2024
2024.0.14.6-preview-2381603 193 8/25/2024
2024.0.14.6-preview-2341601 227 8/21/2024
2024.0.14.6-preview-2321602 187 8/20/2024
2024.0.14.6-preview-2190801 202 8/6/2024
2024.0.14.6-preview-2041501 160 7/22/2024
2024.0.14.6-preview-1920603 227 7/10/2024
2024.0.14.6-preview-1920301 169 7/10/2024
2024.0.14.6-preview-1911302 200 7/9/2024
2024.0.14.6-preview-1901001 200 7/8/2024
2024.0.14.6-preview-1900901 189 7/8/2024
2024.0.14.6-preview-1900801 196 7/8/2024
2024.0.14.6-preview-1860304 196 7/4/2024
2024.0.14.5 303 7/1/2024
2024.0.14.5-preview-1811601 187 6/29/2024
2024.0.14.5-preview-1810501 202 6/29/2024
2024.0.14.5-preview-180132 195 6/28/2024
2024.0.14.5-preview-180131 177 6/28/2024
2024.0.14.5-preview-180121 190 6/28/2024
2024.0.14.4 245 6/27/2024
2024.0.14.4-preview-7 181 6/27/2024
2024.0.14.3 229 6/21/2024
2024.0.14.1 227 6/6/2024
2024.0.14.1-preview 179 6/6/2024
2024.0.14-preview-1 157 6/6/2024
2024.0.13.8-preview 162 6/6/2024
2024.0.13.1-preview-0146 177 6/6/2024
2024.0.12.15803-preview-03 185 6/6/2024
2024.0.12.15608 219 6/4/2024
2024.0.12.15515 301 6/3/2024
2024.0.12.15220 221 5/31/2024
2024.0.12.15220-alpha31-240... 172 5/31/2024
2024.0.12.14911 278 5/28/2024
2024.0.12.14910-alpha28-240... 184 5/28/2024
2024.0.12.14823 236 5/27/2024
2024.0.12.14522-alpha7-2405... 190 5/24/2024
2024.0.12.14514-alpha6-2405... 188 5/24/2024
2024.0.12.14511 257 5/24/2024
2024.0.12.14314 252 5/22/2024
2024.0.12.14114 239 5/20/2024
2024.0.12.12815 285 5/7/2024
2024.0.12.12814 252 5/7/2024
2024.0.12.12721 254 5/6/2024
2024.0.12.12702 240 5/5/2024
2024.0.12.12622 257 5/5/2024
2024.0.12.12514 221 5/4/2024
2024.0.12.12512 220 5/4/2024
2024.0.12.12510 247 5/4/2024
2024.0.12.12420 217 5/3/2024
2024.0.12.12319 204 5/2/2024
2024.0.12.12319-rc-2405021801 145 5/2/2024
2024.0.12.12318 172 5/2/2024
2024.0.12.12215 228 5/1/2024
2024.0.12.12011 219 4/29/2024
2024.0.12.11720 228 4/26/2024
2024.0.12.11719 216 4/26/2024
2024.0.12.11621 226 4/25/2024
2024.0.12.11523 231 4/24/2024
2024.0.12.11522 246 4/24/2024
2024.0.12.11417 235 4/23/2024
2024.0.12.11400 241 4/22/2024
2024.0.12.11316 238 4/22/2024
2024.0.11.10220 228 4/11/2024
2024.0.11.10120 210 4/10/2024
2024.0.11.10119 207 4/10/2024
2024.0.11.10115 224 4/10/2024
2024.0.11.9914 248 4/8/2024
2024.0.11.9901 248 4/7/2024
2024.0.11.9823 234 4/7/2024
2024.0.11.9401 229 4/2/2024
2024.0.11.9301 236 4/1/2024
2024.0.11.9206 218 3/31/2024
2024.0.11.9205 198 3/31/2024
2024.0.11.8200 248 3/21/2024
2024.0.11.8122 215 3/21/2024
2024.0.11.8120 233 3/21/2024
2024.0.11.7320 280 3/13/2024
2024.0.11.7316 226 3/13/2024
2024.0.11.7310 227 3/13/2024
2024.0.11 208 3/13/2024
2024.0.10 255 3/3/2024
2024.0.9 252 2/27/2024
2024.0.8 278 2/1/2024
2024.0.7 232 1/26/2024
2024.0.6 217 1/25/2024
2024.0.5 223 1/24/2024
2024.0.4 210 1/24/2024
2024.0.3 240 1/22/2024
2024.0.2 303 1/10/2024
2024.0.1 246 1/9/2024
2024.0.1-alpha-3 175 1/9/2024
2024.0.1-alpha-2 186 1/9/2024
2024.0.1-alpha-1 210 1/3/2024
2024.0.0 284 12/26/2023
2023.0.27 245 12/21/2023
2023.0.26 234 12/21/2023
2023.0.25 271 12/11/2023
2023.0.24 259 12/8/2023
2023.0.23 219 12/6/2023
2023.0.21 244 12/4/2023
2023.0.20 251 11/27/2023
2023.0.19 223 11/20/2023
2023.0.18 271 10/25/2023
2023.0.17 271 10/22/2023
2023.0.16 248 10/16/2023
2023.0.16-alpha-1 184 10/16/2023
2023.0.15 262 10/14/2023
2023.0.14 212 10/14/2023
2023.0.13 225 10/14/2023
2023.0.12 244 10/14/2023
2023.0.11 219 10/10/2023
2023.0.10 233 10/9/2023
2023.0.9 277 8/16/2023
2023.0.8 251 8/15/2023
2023.0.8-alpha-2 388 5/31/2023
2023.0.7 292 5/12/2023
2023.0.6 494 5/10/2023
2023.0.5 294 5/7/2023
2023.0.4 335 4/22/2023
2023.0.3 343 4/19/2023
2023.0.2 355 4/6/2023
2023.0.1 369 3/13/2023
2022.11.1 482 11/12/2022
2022.11.0 470 11/7/2022
2022.10.0 502 10/28/2022