Simplify.Web.Multipart 1.7.1

.NET 6.0 .NET Standard 2.1 .NET Framework 4.8
dotnet add package Simplify.Web.Multipart --version 1.7.1
NuGet\Install-Package Simplify.Web.Multipart -Version 1.7.1
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.1" />
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.1
#r "nuget: Simplify.Web.Multipart, 1.7.1"
#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 Simplify.Web.Multipart as a Cake Addin
#addin nuget:?package=Simplify.Web.Multipart&version=1.7.1

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

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.1 99 2/11/2023
1.7.0 140 1/10/2023
1.6.0 295 7/24/2022
1.5.0 311 6/4/2022
1.4.5 330 5/18/2022
1.4.4 337 3/13/2022
1.4.3 5,473 11/24/2021
1.4.2 320 4/26/2021
1.4.1 302 2/28/2021
1.4.0 359 1/5/2021
1.3.2 386 12/11/2020
1.3.1 414 10/26/2020
1.3.0 449 4/29/2020
1.2.0 481 12/22/2019
1.2.0-pre01 353 12/17/2019
1.1.0 464 10/21/2019
1.0.1 496 9/28/2019
1.0.0 461 9/3/2019
0.3.0 651 1/3/2019
0.2.2 849 5/9/2018
0.2.1 863 8/23/2017
0.2.0 883 8/25/2016