SVG media files not loading from Azure Blob Storage
Hi all
I have a site which is storing the media files in blob storage. This is working fine for normal images.
I also have some SVG files in the media section, which are not loading, and in the console I get a 404 for each SVG.
Failed to load resource: the server responded with a status of 404 ()
The normal images in the media section load fine, it's just SVGs.
Strangely, if I delete the Web.config file from the media folder in my solution, it then works, so there must be something about the handlers in this config which is preventing the SVGs from loading.
I investigated in sourcecontrol what happened to the file. It contained the StaticFileHandler, but it was removed when updating packages to Umbraco 8.1.5.
I would need to reproduce this behaviour to be absolutely certain.
SVG media files not loading from Azure Blob Storage
Hi all
I have a site which is storing the media files in blob storage. This is working fine for normal images.
I also have some SVG files in the media section, which are not loading, and in the console I get a 404 for each SVG.
The normal images in the media section load fine, it's just SVGs.
Strangely, if I delete the Web.config file from the media folder in my solution, it then works, so there must be something about the handlers in this config which is preventing the SVGs from loading.
Does anyone know how I can resolve this please, without deleting the web.config file from the media folder?
Thanks
Paul
Hi Paul,
For Umbraco v7.5+ you need to add a StaticFileHandler to media/web.config also otherwise the VPP won't work.
It should look like
More information and this config and the VPP can be found at https://github.com/JimBobSquarePants/UmbracoFileSystemProviders.Azure#virtual-path-provider
Jeavon
Different problem, same solution. Thanks, Jeavon!
I investigated in sourcecontrol what happened to the file. It contained the StaticFileHandler, but it was removed when updating packages to Umbraco 8.1.5.
I would need to reproduce this behaviour to be absolutely certain.
I have the same issue on Umbraco 8
I've added the StaticFileHandler to both web.config in root and in media.
But SVG files aren't loading, regular images are https://prnt.sc/ske2hg
Another thing that stops working, is cropping images from outside the media library, i.e.:
Did anyone ever get to the bottom of this? We have this in local and production environments and just cannot get a solution that works?
Si
is working on a reply...