We are following BLOB Storing Azure Provider and were able to upload the files to Azure Blob Storage as given below.
我们正在跟踪Blob存储Azure提供程序,并能够将文件上载到Azure Blob存储,如下所示。
await _blobContainer.SaveAsync(filename, input.ResourceFile.OpenReadStream(), true);
But this doesn't return the full Blob URL.
但这不会返回完整的Blob URL。
We upload tenant logo and we would like to capture the URL and save it to DB Column. This URL will be part of the API response whenever the Tenant Details API is invoked.
我们上传租户徽标,我们想要捕获的URL,并保存到数据库列。每当调用租户详细信息API时,此URL都将成为API响应的一部分。
更多回答
优秀答案推荐
I think the best option for you is to use the tenant ID as Blob file name. then you can retrive the logo with tenant ID.
我认为对您来说最好的选择是使用租户ID作为Blob文件名。然后您可以检索带有租户ID的徽标。
ABP blob storing system is used to store and retrive the blob. you have to do everything else.
ABP BLOB存储系统用于存储和检索BLOB。其他的事你都得做。
I usally use it like here https://stackoverflow.com/a/70595148/1068147
我通常是这样用的,https://stackoverflow.com/a/70595148/1068147
For logo I use Tenant Id and for profile picture I use userId
对于徽标,我使用租户ID,对于个人资料图片,我使用用户ID
更多回答
我是一名优秀的程序员,十分优秀!