DotNetBrightener.SimpleUploadService 2025.0.3

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.3
                    
NuGet\Install-Package DotNetBrightener.SimpleUploadService -Version 2025.0.3
                    
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.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetBrightener.SimpleUploadService" Version="2025.0.3" />
                    
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.3
                    
#r "nuget: DotNetBrightener.SimpleUploadService, 2025.0.3"
                    
#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.
#addin nuget:?package=DotNetBrightener.SimpleUploadService&version=2025.0.3
                    
Install DotNetBrightener.SimpleUploadService as a Cake Addin
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2025.0.3
                    
Install DotNetBrightener.SimpleUploadService as a Cake Tool

Simple Upload API for ASP.NET Application

© 2024 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 (2)

Showing the top 2 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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2025.0.4-preview-299 80 5/31/2025
2025.0.4-preview-298 85 5/30/2025
2025.0.4-preview-296 124 5/30/2025
2025.0.4-preview-295 139 5/29/2025
2025.0.4-preview-293 137 5/26/2025
2025.0.4-preview-292 137 5/26/2025
2025.0.3 124 2/10/2025
2025.0.3-preview-288 95 2/10/2025
2025.0.2 122 1/21/2025
2025.0.2-preview-278 92 1/21/2025
2025.0.2-preview-277 105 12/16/2024
2025.0.1-rc-243301701 331 11/25/2024
2024.0.14.6 122 11/25/2024
2024.0.14.6-rc-243031001 158 10/29/2024
2024.0.14.6-rc-243030701 109 10/29/2024
2024.0.14.6-rc-242840501 97 10/10/2024
2024.0.14.6-rc-242820305 100 10/8/2024
2024.0.14.6-rc-242771401 169 10/3/2024
2024.0.14.6-rc-242770501 101 10/3/2024
2024.0.14.6-rc-242770201 108 10/3/2024
2024.0.14.6-rc-242761801 102 10/2/2024
2024.0.14.6-rc-242761601 105 10/2/2024
2024.0.14.6-rc-242761501 98 10/2/2024
2024.0.14.6-rc-242761401 100 10/2/2024
2024.0.14.6-rc-242760701 115 10/2/2024
2024.0.14.6-rc-242751002 91 10/1/2024
2024.0.14.6-rc-242750901 117 10/1/2024
2024.0.14.6-rc-242750502 107 10/1/2024
2024.0.14.6-rc-242750201 110 10/1/2024
2024.0.14.6-rc-242741501 91 9/30/2024
2024.0.14.6-rc-242730701 124 9/29/2024
2024.0.14.6-preview-2730501 94 9/29/2024
2024.0.14.6-preview-2701501 119 9/26/2024
2024.0.14.6-preview-2620901 148 9/18/2024
2024.0.14.6-preview-2570701 122 9/13/2024
2024.0.14.6-preview-2510703 150 9/7/2024
2024.0.14.6-preview-2480501 133 9/4/2024
2024.0.14.6-preview-2430401 143 8/30/2024
2024.0.14.6-preview-242730701 93 9/29/2024
2024.0.14.6-preview-2421703 119 8/29/2024
2024.0.14.6-preview-2421701 113 8/29/2024
2024.0.14.6-preview-2420901 106 8/29/2024
2024.0.14.6-preview-2390101 133 8/26/2024
2024.0.14.6-preview-2381603 135 8/25/2024
2024.0.14.6-preview-2341601 159 8/21/2024
2024.0.14.6-preview-2321602 123 8/20/2024
2024.0.14.6-preview-2190801 135 8/6/2024
2024.0.14.6-preview-2041501 94 7/22/2024
2024.0.14.6-preview-1920603 161 7/10/2024
2024.0.14.6-preview-1920301 100 7/10/2024
2024.0.14.6-preview-1911302 125 7/9/2024
2024.0.14.6-preview-1901001 132 7/8/2024
2024.0.14.6-preview-1900901 123 7/8/2024
2024.0.14.6-preview-1900801 117 7/8/2024
2024.0.14.6-preview-1860304 131 7/4/2024
2024.0.14.5 203 7/1/2024
2024.0.14.5-preview-1811601 120 6/29/2024
2024.0.14.5-preview-1810501 135 6/29/2024
2024.0.14.5-preview-180132 132 6/28/2024
2024.0.14.5-preview-180131 121 6/28/2024
2024.0.14.5-preview-180121 117 6/28/2024
2024.0.14.4 157 6/27/2024
2024.0.14.4-preview-7 124 6/27/2024
2024.0.14.3 147 6/21/2024
2024.0.14.1 139 6/6/2024
2024.0.14.1-preview 112 6/6/2024
2024.0.14-preview-1 105 6/6/2024
2024.0.13.8-preview 109 6/6/2024
2024.0.13.1-preview-0146 109 6/6/2024
2024.0.12.15803-preview-03 118 6/6/2024
2024.0.12.15608 137 6/4/2024
2024.0.12.15515 212 6/3/2024
2024.0.12.15220 129 5/31/2024
2024.0.12.15220-alpha31-240... 105 5/31/2024
2024.0.12.14911 172 5/28/2024
2024.0.12.14910-alpha28-240... 118 5/28/2024
2024.0.12.14823 144 5/27/2024
2024.0.12.14522-alpha7-2405... 124 5/24/2024
2024.0.12.14514-alpha6-2405... 127 5/24/2024
2024.0.12.14511 157 5/24/2024
2024.0.12.14314 164 5/22/2024
2024.0.12.14114 153 5/20/2024
2024.0.12.12815 197 5/7/2024
2024.0.12.12814 168 5/7/2024
2024.0.12.12721 173 5/6/2024
2024.0.12.12702 161 5/5/2024
2024.0.12.12622 166 5/5/2024
2024.0.12.12514 147 5/4/2024
2024.0.12.12512 150 5/4/2024
2024.0.12.12510 163 5/4/2024
2024.0.12.12420 139 5/3/2024
2024.0.12.12319 115 5/2/2024
2024.0.12.12319-rc-2405021801 86 5/2/2024
2024.0.12.12318 103 5/2/2024
2024.0.12.12215 144 5/1/2024
2024.0.12.12011 136 4/29/2024
2024.0.12.11720 149 4/26/2024
2024.0.12.11719 146 4/26/2024
2024.0.12.11621 154 4/25/2024
2024.0.12.11523 145 4/24/2024
2024.0.12.11522 156 4/24/2024
2024.0.12.11417 160 4/23/2024
2024.0.12.11400 156 4/22/2024
2024.0.12.11316 153 4/22/2024
2024.0.11.10220 148 4/11/2024
2024.0.11.10120 140 4/10/2024
2024.0.11.10119 132 4/10/2024
2024.0.11.10115 142 4/10/2024
2024.0.11.9914 177 4/8/2024
2024.0.11.9901 161 4/7/2024
2024.0.11.9823 158 4/7/2024
2024.0.11.9401 154 4/2/2024
2024.0.11.9301 153 4/1/2024
2024.0.11.9206 137 3/31/2024
2024.0.11.9205 115 3/31/2024
2024.0.11.8200 165 3/21/2024
2024.0.11.8122 135 3/21/2024
2024.0.11.8120 153 3/21/2024
2024.0.11.7320 198 3/13/2024
2024.0.11.7316 154 3/13/2024
2024.0.11.7310 152 3/13/2024
2024.0.11 136 3/13/2024
2024.0.10 179 3/3/2024
2024.0.9 174 2/27/2024
2024.0.8 198 2/1/2024
2024.0.7 151 1/26/2024
2024.0.6 148 1/25/2024
2024.0.5 140 1/24/2024
2024.0.4 138 1/24/2024
2024.0.3 160 1/22/2024
2024.0.2 219 1/10/2024
2024.0.1 159 1/9/2024
2024.0.1-alpha-3 116 1/9/2024
2024.0.1-alpha-2 124 1/9/2024
2024.0.1-alpha-1 148 1/3/2024
2024.0.0 207 12/26/2023
2023.0.27 158 12/21/2023
2023.0.26 147 12/21/2023
2023.0.25 183 12/11/2023
2023.0.24 192 12/8/2023
2023.0.23 160 12/6/2023
2023.0.21 184 12/4/2023
2023.0.20 192 11/27/2023
2023.0.19 174 11/20/2023
2023.0.18 206 10/25/2023
2023.0.17 226 10/22/2023
2023.0.16 191 10/16/2023
2023.0.16-alpha-1 129 10/16/2023
2023.0.15 198 10/14/2023
2023.0.14 157 10/14/2023
2023.0.13 168 10/14/2023
2023.0.12 170 10/14/2023
2023.0.11 148 10/10/2023
2023.0.10 156 10/9/2023
2023.0.9 197 8/16/2023
2023.0.8 183 8/15/2023
2023.0.8-alpha-2 292 5/31/2023
2023.0.7 187 5/12/2023
2023.0.6 327 5/10/2023
2023.0.5 196 5/7/2023
2023.0.4 235 4/22/2023
2023.0.3 256 4/19/2023
2023.0.2 253 4/6/2023
2023.0.1 255 3/13/2023
2022.11.1 386 11/12/2022
2022.11.0 375 11/7/2022
2022.10.0 393 10/28/2022