azure media path
# help-with-umbraco
a
Hello , i use azurblob and azureblob.imagesharp package. I created new grid for customer table in backoffice side ,there is some field one of them is avatar , now i want store image path into database for avatar and that path should be coming form azure blob storage not form our local project like wwwroot / media it should be like this containername/media how can i do that https://cdn.discordapp.com/attachments/1197531927020847134/1197531927553511544/rn_image_picker_lib_temp_54e86fe3-e764-49f5-8611-728194427459.jpg?ex=65bb9b84&is=65a92684&hm=c64e1470fd3220a9a86343f368cfec529da54d73a1501d57de3995fdbc064f2e&
k
The path inside Umbraco is always relative. The file provider will resolve it to an actual path, which on Azure will be the Azure Storage URL. So you shouldn't need to do anything special. If you get the URL to a media item it should resolve to the Storage URL, including any configured CDN.
a
I want blob storage url , how should i get that
k
The same way you would normally get the full URL to a media item in Umbraco. The Azure File Storage Provider will take care of the Azure part. 🙂
t
u need config in appsetting of umbraco for az
a
Is there any possibility to only store into azure not into our local project folder?
5 Views