0
byeniceri created
5 Answer(s)
-
0
It may be that you have a TenantId in your BinaryObject entity. You can add the TenantId parameter to the GetFile method and then switch tenantid in the method.
-
0
I think the problem is that the TenantId is not saved to DB. When i try my multitenant app and the demo, the TenantId is null. This gives the same error.
Why is not TenantId saved to the DB when logged in as a tenant? The BinaryObject.cs has "IMayHaveTenant" with nullable Id. If i add the tenantId manually to the DB the image is shown correctly.
-
0
Try changing this line in DemoUiComponentsController.cs:
- var fileObject = new BinaryObject(null, fileBytes); + var fileObject = new BinaryObject(AbpSession.TenantId, fileBytes);
-
0
Thanks aaron, my problem solved. I hope this solves the problem byeniceri has also.
-
0
Thanks for verifying! I've submitted a PR: aspnetzero/aspnet-zero-core#2239