DotNetBrightener.SimpleUploadService 2024.0.14.6-preview-1900901

This is a prerelease version of DotNetBrightener.SimpleUploadService.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetBrightener.SimpleUploadService --version 2024.0.14.6-preview-1900901
                    
NuGet\Install-Package DotNetBrightener.SimpleUploadService -Version 2024.0.14.6-preview-1900901
                    
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="2024.0.14.6-preview-1900901" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetBrightener.SimpleUploadService" Version="2024.0.14.6-preview-1900901" />
                    
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 2024.0.14.6-preview-1900901
                    
#r "nuget: DotNetBrightener.SimpleUploadService, 2024.0.14.6-preview-1900901"
                    
#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@2024.0.14.6-preview-1900901
                    
#: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=2024.0.14.6-preview-1900901&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2024.0.14.6-preview-1900901&prerelease
                    
Install 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 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. 
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.6-preview-312 0 7/16/2025
2025.0.5 130 7/10/2025
2025.0.5-preview-307 66 7/5/2025
2025.0.4 75 7/5/2025
2025.0.4-preview-305 80 7/4/2025
2025.0.4-preview-304 125 7/1/2025
2025.0.4-preview-299 110 5/31/2025
2025.0.4-preview-298 93 5/30/2025
2025.0.4-preview-296 130 5/30/2025
2025.0.4-preview-295 145 5/29/2025
2025.0.4-preview-293 141 5/26/2025
2025.0.4-preview-292 142 5/26/2025
2025.0.3 135 2/10/2025
2025.0.3-preview-288 103 2/10/2025
2025.0.2 133 1/21/2025
2025.0.2-preview-278 97 1/21/2025
2025.0.2-preview-277 111 12/16/2024
2025.0.1-rc-243301701 339 11/25/2024
2024.0.14.6 135 11/25/2024
2024.0.14.6-rc-243031001 162 10/29/2024
2024.0.14.6-rc-243030701 116 10/29/2024
2024.0.14.6-rc-242840501 101 10/10/2024
2024.0.14.6-rc-242820305 106 10/8/2024
2024.0.14.6-rc-242771401 175 10/3/2024
2024.0.14.6-rc-242770501 107 10/3/2024
2024.0.14.6-rc-242770201 117 10/3/2024
2024.0.14.6-rc-242761801 112 10/2/2024
2024.0.14.6-rc-242761601 109 10/2/2024
2024.0.14.6-rc-242761501 105 10/2/2024
2024.0.14.6-rc-242761401 108 10/2/2024
2024.0.14.6-rc-242760701 119 10/2/2024
2024.0.14.6-rc-242751002 98 10/1/2024
2024.0.14.6-rc-242750901 124 10/1/2024
2024.0.14.6-rc-242750502 113 10/1/2024
2024.0.14.6-rc-242750201 116 10/1/2024
2024.0.14.6-rc-242741501 97 9/30/2024
2024.0.14.6-rc-242730701 129 9/29/2024
2024.0.14.6-preview-2730501 99 9/29/2024
2024.0.14.6-preview-2701501 131 9/26/2024
2024.0.14.6-preview-2620901 157 9/18/2024
2024.0.14.6-preview-2570701 129 9/13/2024
2024.0.14.6-preview-2510703 153 9/7/2024
2024.0.14.6-preview-2480501 137 9/4/2024
2024.0.14.6-preview-2430401 146 8/30/2024
2024.0.14.6-preview-242730701 100 9/29/2024
2024.0.14.6-preview-2421703 130 8/29/2024
2024.0.14.6-preview-2421701 119 8/29/2024
2024.0.14.6-preview-2420901 109 8/29/2024
2024.0.14.6-preview-2390101 140 8/26/2024
2024.0.14.6-preview-2381603 142 8/25/2024
2024.0.14.6-preview-2341601 165 8/21/2024
2024.0.14.6-preview-2321602 129 8/20/2024
2024.0.14.6-preview-2190801 141 8/6/2024
2024.0.14.6-preview-2041501 98 7/22/2024
2024.0.14.6-preview-1920603 167 7/10/2024
2024.0.14.6-preview-1920301 104 7/10/2024
2024.0.14.6-preview-1911302 138 7/9/2024
2024.0.14.6-preview-1901001 138 7/8/2024
2024.0.14.6-preview-1900901 128 7/8/2024
2024.0.14.6-preview-1900801 122 7/8/2024
2024.0.14.6-preview-1860304 135 7/4/2024
2024.0.14.5 214 7/1/2024
2024.0.14.5-preview-1811601 123 6/29/2024
2024.0.14.5-preview-1810501 139 6/29/2024
2024.0.14.5-preview-180132 136 6/28/2024
2024.0.14.5-preview-180131 125 6/28/2024
2024.0.14.5-preview-180121 122 6/28/2024
2024.0.14.4 165 6/27/2024
2024.0.14.4-preview-7 131 6/27/2024
2024.0.14.3 155 6/21/2024
2024.0.14.1 148 6/6/2024
2024.0.14.1-preview 121 6/6/2024
2024.0.14-preview-1 111 6/6/2024
2024.0.13.8-preview 113 6/6/2024
2024.0.13.1-preview-0146 116 6/6/2024
2024.0.12.15803-preview-03 123 6/6/2024
2024.0.12.15608 145 6/4/2024
2024.0.12.15515 222 6/3/2024
2024.0.12.15220 141 5/31/2024
2024.0.12.15220-alpha31-240... 109 5/31/2024
2024.0.12.14911 181 5/28/2024
2024.0.12.14910-alpha28-240... 122 5/28/2024
2024.0.12.14823 154 5/27/2024
2024.0.12.14522-alpha7-2405... 129 5/24/2024
2024.0.12.14514-alpha6-2405... 132 5/24/2024
2024.0.12.14511 168 5/24/2024
2024.0.12.14314 176 5/22/2024
2024.0.12.14114 161 5/20/2024
2024.0.12.12815 204 5/7/2024
2024.0.12.12814 179 5/7/2024
2024.0.12.12721 180 5/6/2024
2024.0.12.12702 171 5/5/2024
2024.0.12.12622 179 5/5/2024
2024.0.12.12514 155 5/4/2024
2024.0.12.12512 158 5/4/2024
2024.0.12.12510 172 5/4/2024
2024.0.12.12420 146 5/3/2024
2024.0.12.12319 129 5/2/2024
2024.0.12.12319-rc-2405021801 91 5/2/2024
2024.0.12.12318 111 5/2/2024
2024.0.12.12215 151 5/1/2024
2024.0.12.12011 148 4/29/2024
2024.0.12.11720 159 4/26/2024
2024.0.12.11719 157 4/26/2024
2024.0.12.11621 163 4/25/2024
2024.0.12.11523 153 4/24/2024
2024.0.12.11522 171 4/24/2024
2024.0.12.11417 171 4/23/2024
2024.0.12.11400 165 4/22/2024
2024.0.12.11316 163 4/22/2024
2024.0.11.10220 156 4/11/2024
2024.0.11.10120 149 4/10/2024
2024.0.11.10119 143 4/10/2024
2024.0.11.10115 149 4/10/2024
2024.0.11.9914 185 4/8/2024
2024.0.11.9901 175 4/7/2024
2024.0.11.9823 167 4/7/2024
2024.0.11.9401 161 4/2/2024
2024.0.11.9301 163 4/1/2024
2024.0.11.9206 146 3/31/2024
2024.0.11.9205 122 3/31/2024
2024.0.11.8200 174 3/21/2024
2024.0.11.8122 142 3/21/2024
2024.0.11.8120 162 3/21/2024
2024.0.11.7320 206 3/13/2024
2024.0.11.7316 162 3/13/2024
2024.0.11.7310 160 3/13/2024
2024.0.11 145 3/13/2024
2024.0.10 187 3/3/2024
2024.0.9 182 2/27/2024
2024.0.8 205 2/1/2024
2024.0.7 160 1/26/2024
2024.0.6 156 1/25/2024
2024.0.5 150 1/24/2024
2024.0.4 147 1/24/2024
2024.0.3 170 1/22/2024
2024.0.2 229 1/10/2024
2024.0.1 170 1/9/2024
2024.0.1-alpha-3 120 1/9/2024
2024.0.1-alpha-2 128 1/9/2024
2024.0.1-alpha-1 151 1/3/2024
2024.0.0 213 12/26/2023
2023.0.27 167 12/21/2023
2023.0.26 155 12/21/2023
2023.0.25 196 12/11/2023
2023.0.24 200 12/8/2023
2023.0.23 162 12/6/2023
2023.0.21 188 12/4/2023
2023.0.20 194 11/27/2023
2023.0.19 178 11/20/2023
2023.0.18 215 10/25/2023
2023.0.17 234 10/22/2023
2023.0.16 202 10/16/2023
2023.0.16-alpha-1 141 10/16/2023
2023.0.15 207 10/14/2023
2023.0.14 167 10/14/2023
2023.0.13 175 10/14/2023
2023.0.12 182 10/14/2023
2023.0.11 155 10/10/2023
2023.0.10 166 10/9/2023
2023.0.9 206 8/16/2023
2023.0.8 197 8/15/2023
2023.0.8-alpha-2 305 5/31/2023
2023.0.7 202 5/12/2023
2023.0.6 364 5/10/2023
2023.0.5 211 5/7/2023
2023.0.4 250 4/22/2023
2023.0.3 269 4/19/2023
2023.0.2 268 4/6/2023
2023.0.1 271 3/13/2023
2022.11.1 397 11/12/2022
2022.11.0 385 11/7/2022
2022.10.0 405 10/28/2022