Blob Upload in azure linux environment issue
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
- Xperience by Kentico version: [29.6.3]
- .NET version: [8]
- Execution environment: [SaaS|Private cloud (Azure/AWS/Virtual machine)]
- Link to relevant Xperience by Kentico documentation: https://docs.kentico.com/developers-and-admins/api/files-api-and-cms-io/file-system-providers/azure-blob-storage
Answers
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.