File tree Expand file tree Collapse file tree 3 files changed +25
-24
lines changed Expand file tree Collapse file tree 3 files changed +25
-24
lines changed Original file line number Diff line number Diff line change 1
1
# Simplify.Web.Multipart
2
2
3
- ` Simplify.Web.Multipart ` is a package which provides multipart form view model and model binder for [ Simplify.Web] ( https://github.com/SimplifyNet/Simplify.Web ) web-framework.
3
+ ` Simplify.Web.Multipart ` is a package which provides multipart form view model and model binder for [ Simplify.Web] ( https://github.com/SimplifyNet/Simplify.Web ) web-framework.
4
4
5
5
## Package status
6
6
7
- | Latest version | [ ![ Nuget version] ( http://img.shields.io/badge/nuget-v1.0-blue.png )] ( https://www.nuget.org/packages/Simplify.Web.Multipart/ ) |
8
- | :------ | :------: |
9
- | ** Target Framework** | Standard 2.0 |
7
+ | Latest version | [ ![ Nuget version] ( http://img.shields.io/badge/nuget-v1.0.1 -blue.png )] ( https://www.nuget.org/packages/Simplify.Web.Multipart/ ) |
8
+ | :------------------- | :--------------------------------------------------------------------------------------------------------------------- ------: |
9
+ | ** Target Framework** | Standard 2.0 |
10
10
11
11
## Build status
12
12
13
- | Branch | Status |
14
- | :------ | :------ |
13
+ | Branch | Status |
14
+ | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------ |
15
15
| ** master** | [ ![ AppVeyor Build status] ( https://ci.appveyor.com/api/projects/status/i8sons2botn3xxiw/branch/master?svg=true )] ( https://ci.appveyor.com/project/i4004/simplify-web-multipart/branch/master ) |
16
16
17
17
## Examples
23
23
``` csharp
24
24
public void Configuration (IAppBuilder app )
25
25
{
26
- .. .
27
- HttpModelHandler .RegisterModelBinder <HttpMultipartFormModelBinder >();
28
- .. .
29
- app .UseSimplifyWeb ();
26
+ .. .
27
+ HttpModelHandler .RegisterModelBinder <HttpMultipartFormModelBinder >();
28
+ .. .
29
+ app .UseSimplifyWeb ();
30
30
}
31
31
```
32
32
33
33
### Accessing model
34
34
35
35
Multipart files will be deserialized to the controller model on first model access
36
+
36
37
``` csharp
37
38
public class MyController : Controller <MultipartViewModel >
38
39
{
39
- public override ControllerResponse Invoke ()
40
- {
41
- Model .Files
42
- }
40
+ public override ControllerResponse Invoke ()
41
+ {
42
+ Model .Files
43
+ }
43
44
}
44
- ```
45
+ ```
Original file line number Diff line number Diff line change 5
5
<Product >Simplify</Product >
6
6
<Description >Simplify.Web multipart form model binder</Description >
7
7
<Copyright >Licensed under LGPL</Copyright >
8
- <Version >1.0</Version >
9
- <PackageProjectUrl >https://github.com/i4004 /Simplify.Web.Multipart</PackageProjectUrl >
10
- <PackageIconUrl >https://raw.githubusercontent.com/i4004/Simplify.Web /master/Images/Icon .png</PackageIconUrl >
11
- <RepositoryUrl >https://github.com/i4004 /Simplify.Web.Multipart</RepositoryUrl >
8
+ <Version >1.0.1 </Version >
9
+ <PackageProjectUrl >https://github.com/SimplifyNet /Simplify.Web.Multipart</PackageProjectUrl >
10
+ <PackageIconUrl >https://raw.githubusercontent.com/SimplifyNet/Images /master/LogoWeb32x32 .png</PackageIconUrl >
11
+ <RepositoryUrl >https://github.com/SimplifyNet /Simplify.Web.Multipart</RepositoryUrl >
12
12
<RepositoryType >GIT</RepositoryType >
13
13
<PackageTags >Simplify.Web multipart</PackageTags >
14
14
<PackageReleaseNotes >
15
- * Upgrade to Simplify.Web 2.2
16
- * .NET Standard 2.0 support (switched to .NET Standard)
15
+ Updates
16
+ * Upgrade to Simplify.Web 2.3
17
17
</PackageReleaseNotes >
18
18
<OutputPath >bin\Any CPU\$(Configuration)\</OutputPath >
19
19
<DocumentationFile >bin\Any CPU\$(Configuration)\$(TargetFramework)\Simplify.Web.Multipart.xml</DocumentationFile >
20
20
</PropertyGroup >
21
21
<ItemGroup >
22
- <PackageReference Include =" Simplify.Web" Version =" 2.2 .0" />
22
+ <PackageReference Include =" Simplify.Web" Version =" 2.3 .0" />
23
23
<PackageReference Include =" HttpMultipartParser" Version =" 2.2.4" />
24
24
</ItemGroup >
25
25
</Project >
Original file line number Diff line number Diff line change 1
- version : ' {build}'
1
+ version : " {build}"
2
2
3
- image : Visual Studio 2017
3
+ image : Visual Studio 2019
4
4
5
5
skip_tags : true
6
6
clone_depth : 1
You can’t perform that action at this time.
0 commit comments