I have a custom media file system that I am using for my Umbraco CMS 13 application. When testing locally, the media file system correctly interacts with the Umbraco file system to take over media handling. However, when testing locally, the /www/root
folder still exists, even though it is empty and not used. For my non-local testing, I did not incorporate a www/root
folder since it is not used. However, I am now getting a System.IO.IOException: Permission denied
error on Umbraco’s manipulation of the www/root
folder because the system umbraco is running on does not have permissions to create or interact with the folder.
How do I disable the need for the system to interact with this folder since it is not being used at all? It seems that by default the recommended way to replace the PhysicalFileSystem
is to use SetMediaFileSystem
on the IUmbracoBuilder
but I am doing so and still encountering this issue so it does not seem as if that alone removes the need for the folder. I am using .NET 8 for reference.