Blob Upload in azure linux environment issue

2025/02/20 7:19 AM

Hi team,

While following XBK documentation to upload media library in blob everything went fine in local environment but when deployed to azure environment it gives some error that says "Message: Could not find a part of the path '/home/site/wwwroot/assets/media/xyz'." Also when uploaded the image it gives this error
Message: Read-only file system : '/home/site/wwwroot/assets'


Environment

Answers

2025/02/20 1:34 PM

Hm, media libraries are not typically stored under wwwroot which is used for storing static files that ASP.NET Core serves - often JavaScript and CSS, or images not managed in Xperience.

The docs show the media library folder storing files in a special assets directory ~/assets/media/ not ~/wwwroot.

I think your Azure Blob storage module is misconfigured. Take a look at the Kentico Community Portal's source code for an example of this module.

To answer this question, you have to login first.