Forum
Image preview not showing
"Select or upload a file" does not always show a preview after selecting an image.
After saving and a refresh JPEGs and PNGs previews appear. However, SVGs don't show a preview at all.
The images are always added to the content ok though - i.e. you can view it on the live web page.
Any idea of how to get this working? I've tried both Chrome and Firefox.
Can you show me your diagnostics report?
No problem - just sent it via a private ticket. Thanks.
Ok...
Does your server have the SVG mime type configured? Do SVGs show on the front end?
Yes, the SVGs show fine on the front end.
The mime type looks fine in the response header if you access the SVG direct too.
JPEGs and PNGs aren't always showing a preview straight away too. Although a refresh seems to make those appear.
Are you on the latest version?
Yes, Perch Runway: 2.7.5
Do you get any errors in the browser console?
The only error I see in the console is: "Failed to load resource: the server responded with a status of 404 (Not Found) chosen-sprite@2x.png">https://staging.mydomain.co.uk/cms/core/assets/css/chosen-sprite@2x.png"
Presumably that's no the image you're attempting to upload?
No, that's not the upload image.
Ok, I'll see if I can replicate it.