/Pages/Identity/OrganizationUnits/Index.cshtml
The original code is wrong because IndexModel
@using Volo.Abp.Identity.Web.Pages.Identity.Roles
it should be using OrganizationUnits,.it affects abp-style-bundle 、 abp-script-bundle and I have fixed it it by by changing to
@using Volo.Abp.Identity.Web.Pages.Identity.OrganizationUnits
Volo.FileManagement Module
When configure the AbpDistributedEntityEventOptions in the ConfigureServices
options.AutoEventSelectors.AddAll();
It cause AutoMapper.AutoMapperMappingException Mapping types:DirectoryDescriptor -> FileDescriptorEto\FileDescriptor -> FileDescriptorEto
So I have to create a profile class to fix it
public class FileManagementMappingProfile : Profile
{
public FileManagementMappingProfile()
{
CreateMap<FileDescriptor, FileDescriptorEto>();
CreateMap<DirectoryDescriptor, FileDescriptorEto>();
}
}
Volo.FileManagement should configure AbpAutoMapperOptions to add this mappingfile
By the way,UploadFiles only support dropPast. It should support more ways, such as selecting files。
Thanks @cotur It's solved and displayed much better.If I want a simple online document preview function, for example: [http://view.officeapps.live.com/op/view.aspx?src= http://video.ch9.ms/build/2011/slides/TOOL-532T_Sutter.pptx]。 Src=“Document absolute path ”,Replace with /api/file-management/file-descriptor/download/fileId, I don’t know if it is possible, or there are other simpler ways