Simplify.Web.Multipart 1.7.0

.NET 5.0 .NET Standard 2.1 .NET Framework 4.8
dotnet add package Simplify.Web.Multipart --version 1.7.0
NuGet\Install-Package Simplify.Web.Multipart -Version 1.7.0
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="Simplify.Web.Multipart" Version="1.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Simplify.Web.Multipart --version 1.7.0
#r "nuget: Simplify.Web.Multipart, 1.7.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Simplify.Web.Multipart as a Cake Addin
#addin nuget:?package=Simplify.Web.Multipart&version=1.7.0

// Install Simplify.Web.Multipart as a Cake Tool
#tool nuget:?package=Simplify.Web.Multipart&version=1.7.0

Simplify.Web.Multipart

Nuget Version Nuget Download Build PackageLibraries.io dependency status for latest release CodeFactor Grade Platform PRs Welcome

Simplify.Web.Multipart is a package which provides multipart form view model and model binder for Simplify.Web web-framework.

Quick start

Registering binder

public void Configuration(IApplicationBuilder app)
{
    ...
    HttpModelHandler.RegisterModelBinder<HttpMultipartFormModelBinder>();
    ...
    app.UseSimplifyWeb();
}

public void ConfigureServices(IServiceCollection services)
{
    ...
    DIContainer.Current.RegisterHttpMultipartFormModelBinder();
    ...
}

Getting files from client

Asynchronous
public class MyController : ControllerAsync<MultipartViewModel>
{
    public override async Task<ControllerResponse> Invoke()
    {
        await ReadModelAsync();

        Model.Files
    }
}
Synchronous

Multipart files will be deserialized to the controller model on first model access

public class MyController : Controller<MultipartViewModel>
{
    public override ControllerResponse Invoke()
    {
        Model.Files
    }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
.NET Framework net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.0 96 1/10/2023
1.6.0 253 7/24/2022
1.5.0 270 6/4/2022
1.4.5 285 5/18/2022
1.4.4 292 3/13/2022
1.4.3 5,461 11/24/2021
1.4.2 303 4/26/2021
1.4.1 288 2/28/2021
1.4.0 351 1/5/2021
1.3.2 378 12/11/2020
1.3.1 402 10/26/2020
1.3.0 437 4/29/2020
1.2.0 475 12/22/2019
1.2.0-pre01 344 12/17/2019
1.1.0 456 10/21/2019
1.0.1 484 9/28/2019
1.0.0 449 9/3/2019
0.3.0 645 1/3/2019
0.2.2 837 5/9/2018
0.2.1 844 8/23/2017
0.2.0 867 8/25/2016