How to get working in static folders #144
-
Hi, I have some additional static folders set up
The wwwroot folder works fine, but how to support the "Public" folder? error console:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The current provider is tied to the wwwroot folder via the The best solution would be to implement your own provider that took an collection of relative root folder names as options and created a We actually do something similar for the physical cache (albeit with only a single folder) If you are willing to PR against the library I can help you with the development which we can then use to replace the existing functionality in a backwards compatible manner. |
Beta Was this translation helpful? Give feedback.
-
You should be able to use a In your startup something like this.
Then you don't need two |
Beta Was this translation helpful? Give feedback.
You should be able to use a
CompositeFileProvider
to do this.In your startup something like this.
Then you don't need two
UseStaticFiles()
and ImageSharp will just pickup on the changed configuration, when it reads from