Browse Source
Add `FormBodyBindingIgnoredTypes` in `WebModule`.
pull/10828/head
maliming
5 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
2 changed files with
14 additions and
0 deletions
-
modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/CmsKitAdminWebModule.cs
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
|
@ -11,6 +12,7 @@ using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
using Volo.Blogging.Bundling; |
|
|
|
using Volo.Blogging.Files; |
|
|
|
using Volo.Blogging.Localization; |
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
|
@ -78,6 +80,11 @@ namespace Volo.Blogging |
|
|
|
{ |
|
|
|
options.DisableModule(BloggingRemoteServiceConsts.ModuleName); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpAspNetCoreMvcOptions>(options => |
|
|
|
{ |
|
|
|
options.ConventionalControllers.FormBodyBindingIgnoredTypes.Add(typeof(FileUploadInputDto)); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.CmsKit.Admin.Web.Menus; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
@ -12,6 +13,7 @@ using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.PageToolbars; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery; |
|
|
|
using Volo.CmsKit.Admin.MediaDescriptors; |
|
|
|
|
|
|
|
namespace Volo.CmsKit.Admin.Web |
|
|
|
{ |
|
|
|
@ -158,6 +160,11 @@ namespace Volo.CmsKit.Admin.Web |
|
|
|
{ |
|
|
|
options.DisableModule(CmsKitAdminRemoteServiceConsts.ModuleName); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpAspNetCoreMvcOptions>(options => |
|
|
|
{ |
|
|
|
options.ConventionalControllers.FormBodyBindingIgnoredTypes.Add(typeof(CreateMediaInputWithStream)); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|