Simplify.Web.Multipart 1.4.3

Install-Package Simplify.Web.Multipart -Version 1.4.3
dotnet add package Simplify.Web.Multipart --version 1.4.3
<PackageReference Include="Simplify.Web.Multipart" Version="1.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Simplify.Web.Multipart --version 1.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Simplify.Web.Multipart, 1.4.3"
#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.4.3

// Install Simplify.Web.Multipart as a Cake Tool
#tool nuget:?package=Simplify.Web.Multipart&version=1.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Simplify.Web.Multipart

Nuget Version Nuget Download AppVeyor branch Libraries.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
    }
}

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.4.3 658 11/24/2021
1.4.2 157 4/26/2021
1.4.1 128 2/28/2021
1.4.0 191 1/5/2021
1.3.2 218 12/11/2020
1.3.1 253 10/26/2020
1.3.0 256 4/29/2020
1.2.0 321 12/22/2019
1.2.0-pre01 260 12/17/2019
1.1.0 297 10/21/2019
1.0.1 328 9/28/2019
1.0.0 284 9/3/2019
0.3.0 473 1/3/2019
0.2.2 611 5/9/2018
0.2.1 635 8/23/2017
0.2.0 654 8/25/2016