DotNetBrightener.SimpleUploadService 2024.0.14.6-rc-242730701

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-242730701                
NuGet\Install-Package DotNetBrightener.SimpleUploadService -Version 2024.0.14.6-rc-242730701                
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-242730701" />                
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-242730701                
#r "nuget: DotNetBrightener.SimpleUploadService, 2024.0.14.6-rc-242730701"                
#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-242730701&prerelease

// Install DotNetBrightener.SimpleUploadService as a Cake Tool
#tool nuget:?package=DotNetBrightener.SimpleUploadService&version=2024.0.14.6-rc-242730701&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.2-preview-277 86 a month ago
2025.0.1-rc-243301701 185 2 months ago
2024.0.14.6 97 2 months ago
2024.0.14.6-rc-243031001 143 3 months ago
2024.0.14.6-rc-243030701 96 3 months ago
2024.0.14.6-rc-242840501 87 3 months ago
2024.0.14.6-rc-242820305 90 3 months ago
2024.0.14.6-rc-242771401 159 3 months ago
2024.0.14.6-rc-242770501 91 3 months ago
2024.0.14.6-rc-242770201 100 3 months ago
2024.0.14.6-rc-242761801 90 4 months ago
2024.0.14.6-rc-242761601 94 4 months ago
2024.0.14.6-rc-242761501 88 4 months ago
2024.0.14.6-rc-242761401 89 4 months ago
2024.0.14.6-rc-242760701 105 4 months ago
2024.0.14.6-rc-242751002 82 4 months ago
2024.0.14.6-rc-242750901 104 4 months ago
2024.0.14.6-rc-242750502 95 4 months ago
2024.0.14.6-rc-242750201 101 4 months ago
2024.0.14.6-rc-242741501 80 4 months ago
2024.0.14.6-rc-242730701 110 4 months ago
2024.0.14.6-preview-2730501 83 4 months ago
2024.0.14.6-preview-2701501 111 4 months ago
2024.0.14.6-preview-2620901 141 4 months ago
2024.0.14.6-preview-2570701 115 4 months ago
2024.0.14.6-preview-2510703 141 4 months ago
2024.0.14.6-preview-2480501 122 4 months ago
2024.0.14.6-preview-2430401 134 5 months ago
2024.0.14.6-preview-242730701 79 4 months ago
2024.0.14.6-preview-2421703 108 5 months ago
2024.0.14.6-preview-2421701 103 5 months ago
2024.0.14.6-preview-2420901 95 5 months ago
2024.0.14.6-preview-2390101 127 5 months ago
2024.0.14.6-preview-2381603 128 5 months ago
2024.0.14.6-preview-2341601 153 5 months ago
2024.0.14.6-preview-2321602 116 5 months ago
2024.0.14.6-preview-2190801 129 5 months ago
2024.0.14.6-preview-2041501 89 6 months ago
2024.0.14.6-preview-1920603 152 6 months ago
2024.0.14.6-preview-1920301 92 6 months ago
2024.0.14.6-preview-1911302 120 6 months ago
2024.0.14.6-preview-1901001 127 6 months ago
2024.0.14.6-preview-1900901 118 6 months ago
2024.0.14.6-preview-1900801 111 6 months ago
2024.0.14.6-preview-1860304 125 6 months ago
2024.0.14.5 188 7 months ago
2024.0.14.5-preview-1811601 115 7 months ago
2024.0.14.5-preview-1810501 128 7 months ago
2024.0.14.5-preview-180132 122 7 months ago
2024.0.14.5-preview-180131 113 7 months ago
2024.0.14.5-preview-180121 111 7 months ago
2024.0.14.4 140 7 months ago
2024.0.14.4-preview-7 117 7 months ago
2024.0.14.3 132 7 months ago
2024.0.14.1 123 7 months ago
2024.0.14.1-preview 102 7 months ago
2024.0.14-preview-1 96 7 months ago
2024.0.13.8-preview 104 7 months ago
2024.0.13.1-preview-0146 103 7 months ago
2024.0.12.15803-preview-03 114 7 months ago
2024.0.12.15608 124 7 months ago
2024.0.12.15515 198 7 months ago
2024.0.12.15220 107 8 months ago
2024.0.12.15220-alpha31-240... 99 8 months ago
2024.0.12.14911 153 8 months ago
2024.0.12.14910-alpha28-240... 113 8 months ago
2024.0.12.14823 129 8 months ago
2024.0.12.14522-alpha7-2405... 118 8 months ago
2024.0.12.14514-alpha6-2405... 123 8 months ago
2024.0.12.14511 143 8 months ago
2024.0.12.14314 148 8 months ago
2024.0.12.14114 138 8 months ago
2024.0.12.12815 178 8 months ago
2024.0.12.12814 151 8 months ago
2024.0.12.12721 159 8 months ago
2024.0.12.12702 146 8 months ago
2024.0.12.12622 150 8 months ago
2024.0.12.12514 129 8 months ago
2024.0.12.12512 130 8 months ago
2024.0.12.12510 144 8 months ago
2024.0.12.12420 122 8 months ago
2024.0.12.12319 97 9 months ago
2024.0.12.12319-rc-2405021801 77 9 months ago
2024.0.12.12318 87 9 months ago
2024.0.12.12215 126 9 months ago
2024.0.12.12011 120 9 months ago
2024.0.12.11720 135 9 months ago
2024.0.12.11719 132 9 months ago
2024.0.12.11621 139 9 months ago
2024.0.12.11523 131 9 months ago
2024.0.12.11522 142 9 months ago
2024.0.12.11417 146 9 months ago
2024.0.12.11400 142 9 months ago
2024.0.12.11316 136 9 months ago
2024.0.11.10220 134 9 months ago
2024.0.11.10120 122 9 months ago
2024.0.11.10119 119 9 months ago
2024.0.11.10115 126 9 months ago
2024.0.11.9914 164 9 months ago
2024.0.11.9901 146 9 months ago
2024.0.11.9823 142 9 months ago
2024.0.11.9401 140 10 months ago
2024.0.11.9301 140 10 months ago
2024.0.11.9206 123 10 months ago
2024.0.11.9205 99 10 months ago
2024.0.11.8200 150 10 months ago
2024.0.11.8122 121 10 months ago
2024.0.11.8120 138 10 months ago
2024.0.11.7320 183 3/13/2024
2024.0.11.7316 140 3/13/2024
2024.0.11.7310 134 3/13/2024
2024.0.11 122 3/13/2024
2024.0.10 163 3/3/2024
2024.0.9 159 2/27/2024
2024.0.8 185 2/1/2024
2024.0.7 138 1/26/2024
2024.0.6 134 1/25/2024
2024.0.5 124 1/24/2024
2024.0.4 125 1/24/2024
2024.0.3 144 1/22/2024
2024.0.2 203 1/10/2024
2024.0.1 137 1/9/2024
2024.0.1-alpha-3 110 1/9/2024
2024.0.1-alpha-2 120 1/9/2024
2024.0.1-alpha-1 142 1/3/2024
2024.0.0 191 12/26/2023
2023.0.27 142 12/21/2023
2023.0.26 133 12/21/2023
2023.0.25 168 12/11/2023
2023.0.24 177 12/8/2023
2023.0.23 154 12/6/2023
2023.0.21 178 12/4/2023
2023.0.20 183 11/27/2023
2023.0.19 168 11/20/2023
2023.0.18 199 10/25/2023
2023.0.17 220 10/22/2023
2023.0.16 186 10/16/2023
2023.0.16-alpha-1 124 10/16/2023
2023.0.15 192 10/14/2023
2023.0.14 149 10/14/2023
2023.0.13 162 10/14/2023
2023.0.12 164 10/14/2023
2023.0.11 143 10/10/2023
2023.0.10 150 10/9/2023
2023.0.9 187 8/16/2023
2023.0.8 172 8/15/2023
2023.0.8-alpha-2 277 5/31/2023
2023.0.7 167 5/12/2023
2023.0.6 220 5/10/2023
2023.0.5 179 5/7/2023
2023.0.4 215 4/22/2023
2023.0.3 240 4/19/2023
2023.0.2 232 4/6/2023
2023.0.1 235 3/13/2023
2022.11.1 365 11/12/2022
2022.11.0 354 11/7/2022
2022.10.0 372 10/28/2022