Skip to content

How to get working in static folders #144

Answered by deanmarcussen
Alerinos asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use a CompositeFileProvider to do this.

In your startup something like this.

env.WebRootFileProvider = new CompositeFileProvider(env.WebRootFileProvider, new PhysicalFileProvider("/Public"));

Then you don't need two UseStaticFiles() and ImageSharp will just pickup on the changed configuration, when it reads from

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@JimBobSquarePants
Comment options

@Alerinos
Comment options

@deanmarcussen
Comment options

@xps
Comment options

Answer selected by Alerinos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants