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.
#addin nuget:?package=DotNetBrightener.SimpleUploadService&version=2024.0.14.6-preview-1900901&prerelease
                    
Install DotNetBrightener.SimpleUploadService as a Cake Addin
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2024.0.14.6-preview-1900901&prerelease
                    
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 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. 
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.3 114 2/10/2025
2025.0.3-preview-288 91 2/10/2025
2025.0.2 113 1/21/2025
2025.0.2-preview-278 88 1/21/2025
2025.0.2-preview-277 100 12/16/2024
2025.0.1-rc-243301701 315 11/25/2024
2024.0.14.6 115 11/25/2024
2024.0.14.6-rc-243031001 153 10/29/2024
2024.0.14.6-rc-243030701 104 10/29/2024
2024.0.14.6-rc-242840501 93 10/10/2024
2024.0.14.6-rc-242820305 95 10/8/2024
2024.0.14.6-rc-242771401 166 10/3/2024
2024.0.14.6-rc-242770501 98 10/3/2024
2024.0.14.6-rc-242770201 104 10/3/2024
2024.0.14.6-rc-242761801 97 10/2/2024
2024.0.14.6-rc-242761601 101 10/2/2024
2024.0.14.6-rc-242761501 92 10/2/2024
2024.0.14.6-rc-242761401 93 10/2/2024
2024.0.14.6-rc-242760701 111 10/2/2024
2024.0.14.6-rc-242751002 87 10/1/2024
2024.0.14.6-rc-242750901 113 10/1/2024
2024.0.14.6-rc-242750502 104 10/1/2024
2024.0.14.6-rc-242750201 107 10/1/2024
2024.0.14.6-rc-242741501 86 9/30/2024
2024.0.14.6-rc-242730701 120 9/29/2024
2024.0.14.6-preview-2730501 89 9/29/2024
2024.0.14.6-preview-2701501 116 9/26/2024
2024.0.14.6-preview-2620901 145 9/18/2024
2024.0.14.6-preview-2570701 118 9/13/2024
2024.0.14.6-preview-2510703 146 9/7/2024
2024.0.14.6-preview-2480501 128 9/4/2024
2024.0.14.6-preview-2430401 139 8/30/2024
2024.0.14.6-preview-242730701 87 9/29/2024
2024.0.14.6-preview-2421703 116 8/29/2024
2024.0.14.6-preview-2421701 109 8/29/2024
2024.0.14.6-preview-2420901 103 8/29/2024
2024.0.14.6-preview-2390101 130 8/26/2024
2024.0.14.6-preview-2381603 132 8/25/2024
2024.0.14.6-preview-2341601 156 8/21/2024
2024.0.14.6-preview-2321602 120 8/20/2024
2024.0.14.6-preview-2190801 132 8/6/2024
2024.0.14.6-preview-2041501 92 7/22/2024
2024.0.14.6-preview-1920603 159 7/10/2024
2024.0.14.6-preview-1920301 98 7/10/2024
2024.0.14.6-preview-1911302 123 7/9/2024
2024.0.14.6-preview-1901001 130 7/8/2024
2024.0.14.6-preview-1900901 121 7/8/2024
2024.0.14.6-preview-1900801 114 7/8/2024
2024.0.14.6-preview-1860304 128 7/4/2024
2024.0.14.5 197 7/1/2024
2024.0.14.5-preview-1811601 118 6/29/2024
2024.0.14.5-preview-1810501 133 6/29/2024
2024.0.14.5-preview-180132 129 6/28/2024
2024.0.14.5-preview-180131 119 6/28/2024
2024.0.14.5-preview-180121 114 6/28/2024
2024.0.14.4 151 6/27/2024
2024.0.14.4-preview-7 120 6/27/2024
2024.0.14.3 142 6/21/2024
2024.0.14.1 134 6/6/2024
2024.0.14.1-preview 110 6/6/2024
2024.0.14-preview-1 103 6/6/2024
2024.0.13.8-preview 106 6/6/2024
2024.0.13.1-preview-0146 107 6/6/2024
2024.0.12.15803-preview-03 116 6/6/2024
2024.0.12.15608 132 6/4/2024
2024.0.12.15515 207 6/3/2024
2024.0.12.15220 124 5/31/2024
2024.0.12.15220-alpha31-240... 103 5/31/2024
2024.0.12.14911 166 5/28/2024
2024.0.12.14910-alpha28-240... 116 5/28/2024
2024.0.12.14823 138 5/27/2024
2024.0.12.14522-alpha7-2405... 120 5/24/2024
2024.0.12.14514-alpha6-2405... 125 5/24/2024
2024.0.12.14511 152 5/24/2024
2024.0.12.14314 159 5/22/2024
2024.0.12.14114 148 5/20/2024
2024.0.12.12815 192 5/7/2024
2024.0.12.12814 162 5/7/2024
2024.0.12.12721 167 5/6/2024
2024.0.12.12702 156 5/5/2024
2024.0.12.12622 161 5/5/2024
2024.0.12.12514 142 5/4/2024
2024.0.12.12512 145 5/4/2024
2024.0.12.12510 157 5/4/2024
2024.0.12.12420 133 5/3/2024
2024.0.12.12319 110 5/2/2024
2024.0.12.12319-rc-2405021801 84 5/2/2024
2024.0.12.12318 98 5/2/2024
2024.0.12.12215 139 5/1/2024
2024.0.12.12011 131 4/29/2024
2024.0.12.11720 143 4/26/2024
2024.0.12.11719 141 4/26/2024
2024.0.12.11621 148 4/25/2024
2024.0.12.11523 138 4/24/2024
2024.0.12.11522 151 4/24/2024
2024.0.12.11417 155 4/23/2024
2024.0.12.11400 150 4/22/2024
2024.0.12.11316 148 4/22/2024
2024.0.11.10220 143 4/11/2024
2024.0.11.10120 135 4/10/2024
2024.0.11.10119 127 4/10/2024
2024.0.11.10115 136 4/10/2024
2024.0.11.9914 172 4/8/2024
2024.0.11.9901 155 4/7/2024
2024.0.11.9823 153 4/7/2024
2024.0.11.9401 149 4/2/2024
2024.0.11.9301 148 4/1/2024
2024.0.11.9206 131 3/31/2024
2024.0.11.9205 108 3/31/2024
2024.0.11.8200 159 3/21/2024
2024.0.11.8122 129 3/21/2024
2024.0.11.8120 147 3/21/2024
2024.0.11.7320 192 3/13/2024
2024.0.11.7316 148 3/13/2024
2024.0.11.7310 146 3/13/2024
2024.0.11 130 3/13/2024
2024.0.10 172 3/3/2024
2024.0.9 167 2/27/2024
2024.0.8 193 2/1/2024
2024.0.7 146 1/26/2024
2024.0.6 142 1/25/2024
2024.0.5 135 1/24/2024
2024.0.4 133 1/24/2024
2024.0.3 152 1/22/2024
2024.0.2 214 1/10/2024
2024.0.1 154 1/9/2024
2024.0.1-alpha-3 113 1/9/2024
2024.0.1-alpha-2 122 1/9/2024
2024.0.1-alpha-1 146 1/3/2024
2024.0.0 202 12/26/2023
2023.0.27 153 12/21/2023
2023.0.26 141 12/21/2023
2023.0.25 178 12/11/2023
2023.0.24 185 12/8/2023
2023.0.23 157 12/6/2023
2023.0.21 181 12/4/2023
2023.0.20 188 11/27/2023
2023.0.19 171 11/20/2023
2023.0.18 203 10/25/2023
2023.0.17 223 10/22/2023
2023.0.16 188 10/16/2023
2023.0.16-alpha-1 126 10/16/2023
2023.0.15 195 10/14/2023
2023.0.14 154 10/14/2023
2023.0.13 164 10/14/2023
2023.0.12 167 10/14/2023
2023.0.11 145 10/10/2023
2023.0.10 153 10/9/2023
2023.0.9 190 8/16/2023
2023.0.8 176 8/15/2023
2023.0.8-alpha-2 286 5/31/2023
2023.0.7 180 5/12/2023
2023.0.6 305 5/10/2023
2023.0.5 189 5/7/2023
2023.0.4 227 4/22/2023
2023.0.3 249 4/19/2023
2023.0.2 243 4/6/2023
2023.0.1 248 3/13/2023
2022.11.1 379 11/12/2022
2022.11.0 367 11/7/2022
2022.10.0 386 10/28/2022