0
byeniceri created
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Try changing this line in DemoUiComponentsController.cs:
- var fileObject = new BinaryObject(null, fileBytes); + var fileObject = new BinaryObject(AbpSession.TenantId, fileBytes);Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks aaron, my problem solved. I hope this solves the problem byeniceri has also.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks for verifying! I've submitted a PR: aspnetzero/aspnet-zero-core#2239
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)


