DotNetBrightener.SimpleUploadService 2024.0.14.6-rc-243031001

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

// Install DotNetBrightener.SimpleUploadService as a Cake Tool
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2024.0.14.6-rc-243031001&prerelease                

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 99 a month ago
2025.0.3-preview-288 84 a month ago
2025.0.2 102 2 months ago
2025.0.2-preview-278 81 2 months ago
2025.0.2-preview-277 93 3 months ago
2025.0.1-rc-243301701 268 3 months ago
2024.0.14.6 102 3 months ago
2024.0.14.6-rc-243031001 152 4 months ago
2024.0.14.6-rc-243030701 103 4 months ago
2024.0.14.6-rc-242840501 92 5 months ago
2024.0.14.6-rc-242820305 93 5 months ago
2024.0.14.6-rc-242771401 164 5 months ago
2024.0.14.6-rc-242770501 96 5 months ago
2024.0.14.6-rc-242770201 103 5 months ago
2024.0.14.6-rc-242761801 93 5 months ago
2024.0.14.6-rc-242761601 99 5 months ago
2024.0.14.6-rc-242761501 91 5 months ago
2024.0.14.6-rc-242761401 92 5 months ago
2024.0.14.6-rc-242760701 110 5 months ago
2024.0.14.6-rc-242751002 86 5 months ago
2024.0.14.6-rc-242750901 109 5 months ago
2024.0.14.6-rc-242750502 101 5 months ago
2024.0.14.6-rc-242750201 105 5 months ago
2024.0.14.6-rc-242741501 85 5 months ago
2024.0.14.6-rc-242730701 114 5 months ago
2024.0.14.6-preview-2730501 87 5 months ago
2024.0.14.6-preview-2701501 114 5 months ago
2024.0.14.6-preview-2620901 144 6 months ago
2024.0.14.6-preview-2570701 116 6 months ago
2024.0.14.6-preview-2510703 142 6 months ago
2024.0.14.6-preview-2480501 123 6 months ago
2024.0.14.6-preview-2430401 135 6 months ago
2024.0.14.6-preview-242730701 86 5 months ago
2024.0.14.6-preview-2421703 111 6 months ago
2024.0.14.6-preview-2421701 104 6 months ago
2024.0.14.6-preview-2420901 98 6 months ago
2024.0.14.6-preview-2390101 128 6 months ago
2024.0.14.6-preview-2381603 130 6 months ago
2024.0.14.6-preview-2341601 154 7 months ago
2024.0.14.6-preview-2321602 118 7 months ago
2024.0.14.6-preview-2190801 130 7 months ago
2024.0.14.6-preview-2041501 90 8 months ago
2024.0.14.6-preview-1920603 157 8 months ago
2024.0.14.6-preview-1920301 97 8 months ago
2024.0.14.6-preview-1911302 121 8 months ago
2024.0.14.6-preview-1901001 128 8 months ago
2024.0.14.6-preview-1900901 119 8 months ago
2024.0.14.6-preview-1900801 112 8 months ago
2024.0.14.6-preview-1860304 126 8 months ago
2024.0.14.5 189 8 months ago
2024.0.14.5-preview-1811601 116 8 months ago
2024.0.14.5-preview-1810501 131 8 months ago
2024.0.14.5-preview-180132 127 8 months ago
2024.0.14.5-preview-180131 117 8 months ago
2024.0.14.5-preview-180121 112 8 months ago
2024.0.14.4 142 8 months ago
2024.0.14.4-preview-7 118 8 months ago
2024.0.14.3 133 9 months ago
2024.0.14.1 127 9 months ago
2024.0.14.1-preview 109 9 months ago
2024.0.14-preview-1 102 9 months ago
2024.0.13.8-preview 105 9 months ago
2024.0.13.1-preview-0146 107 9 months ago
2024.0.12.15803-preview-03 115 9 months ago
2024.0.12.15608 125 9 months ago
2024.0.12.15515 200 9 months ago
2024.0.12.15220 116 9 months ago
2024.0.12.15220-alpha31-240... 100 9 months ago
2024.0.12.14911 157 9 months ago
2024.0.12.14910-alpha28-240... 114 9 months ago
2024.0.12.14823 131 9 months ago
2024.0.12.14522-alpha7-2405... 119 9 months ago
2024.0.12.14514-alpha6-2405... 124 9 months ago
2024.0.12.14511 145 9 months ago
2024.0.12.14314 151 10 months ago
2024.0.12.14114 139 10 months ago
2024.0.12.12815 181 5/7/2024
2024.0.12.12814 152 5/7/2024
2024.0.12.12721 160 5/6/2024
2024.0.12.12702 148 5/5/2024
2024.0.12.12622 153 5/5/2024
2024.0.12.12514 134 5/4/2024
2024.0.12.12512 137 5/4/2024
2024.0.12.12510 149 5/4/2024
2024.0.12.12420 125 5/3/2024
2024.0.12.12319 102 5/2/2024
2024.0.12.12319-rc-2405021801 83 5/2/2024
2024.0.12.12318 90 5/2/2024
2024.0.12.12215 131 5/1/2024
2024.0.12.12011 124 4/29/2024
2024.0.12.11720 136 4/26/2024
2024.0.12.11719 134 4/26/2024
2024.0.12.11621 140 4/25/2024
2024.0.12.11523 132 4/24/2024
2024.0.12.11522 143 4/24/2024
2024.0.12.11417 147 4/23/2024
2024.0.12.11400 143 4/22/2024
2024.0.12.11316 139 4/22/2024
2024.0.11.10220 135 4/11/2024
2024.0.11.10120 127 4/10/2024
2024.0.11.10119 120 4/10/2024
2024.0.11.10115 129 4/10/2024
2024.0.11.9914 165 4/8/2024
2024.0.11.9901 148 4/7/2024
2024.0.11.9823 145 4/7/2024
2024.0.11.9401 141 4/2/2024
2024.0.11.9301 141 4/1/2024
2024.0.11.9206 124 3/31/2024
2024.0.11.9205 100 3/31/2024
2024.0.11.8200 152 3/21/2024
2024.0.11.8122 122 3/21/2024
2024.0.11.8120 139 3/21/2024
2024.0.11.7320 184 3/13/2024
2024.0.11.7316 141 3/13/2024
2024.0.11.7310 139 3/13/2024
2024.0.11 123 3/13/2024
2024.0.10 164 3/3/2024
2024.0.9 160 2/27/2024
2024.0.8 186 2/1/2024
2024.0.7 139 1/26/2024
2024.0.6 135 1/25/2024
2024.0.5 128 1/24/2024
2024.0.4 126 1/24/2024
2024.0.3 145 1/22/2024
2024.0.2 207 1/10/2024
2024.0.1 147 1/9/2024
2024.0.1-alpha-3 111 1/9/2024
2024.0.1-alpha-2 121 1/9/2024
2024.0.1-alpha-1 145 1/3/2024
2024.0.0 195 12/26/2023
2023.0.27 146 12/21/2023
2023.0.26 134 12/21/2023
2023.0.25 171 12/11/2023
2023.0.24 178 12/8/2023
2023.0.23 155 12/6/2023
2023.0.21 179 12/4/2023
2023.0.20 186 11/27/2023
2023.0.19 169 11/20/2023
2023.0.18 201 10/25/2023
2023.0.17 221 10/22/2023
2023.0.16 187 10/16/2023
2023.0.16-alpha-1 125 10/16/2023
2023.0.15 194 10/14/2023
2023.0.14 153 10/14/2023
2023.0.13 163 10/14/2023
2023.0.12 165 10/14/2023
2023.0.11 144 10/10/2023
2023.0.10 151 10/9/2023
2023.0.9 188 8/16/2023
2023.0.8 173 8/15/2023
2023.0.8-alpha-2 281 5/31/2023
2023.0.7 175 5/12/2023
2023.0.6 276 5/10/2023
2023.0.5 184 5/7/2023
2023.0.4 221 4/22/2023
2023.0.3 245 4/19/2023
2023.0.2 237 4/6/2023
2023.0.1 241 3/13/2023
2022.11.1 372 11/12/2022
2022.11.0 361 11/7/2022
2022.10.0 379 10/28/2022