Skip to content

umbraco 9: imagesharp and custom virtual directory not working together #11580

Closed
@shearer3000

Description

@shearer3000

Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9

9.0.1

Bug summary

Hello

Umbraco out-of-the-box seems to expect that media will reside in wwwroot, but our requirement (and I suspect many others too) is the need to store umbraco media in a custom directory (say a UNC network path) or even an azure blob for production.

I have registered a custom media directory as per https://our.umbraco.com/Documentation/Extending/FileSystemProviders/ but then the issue seems to become how to tell ImageSharp about that location too (for crops on the website frontend). We found a ImageSharp thread about doing this SixLabors/ImageSharp.Web#135

Following both of the above ultimately seems to clash with each other as Umbraco middleware already registers Imagesharp in the start-up routine.

Is there a documented working solution or this? (anyone with a CD/automated deployment system will most likely need media to sit “outside” of the deployment package so that it “survives” deployments, so might be missing why this isn’t capability that more people are requesting?)

Thanks
Andrew

Specifics

No response

Steps to reproduce

no additional info to ticket summary

Expected result / actual result

No response


This item has been added to our backlog AB#14906

Metadata

Metadata

Assignees

No one assigned

    Labels

    state/sprint-candidateWe're trying to get this in a sprint at HQ in the next few weekstype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions