I have been trying to upload images for categories on my forum. I have tried uploading many different types of images but there is this one error every time. Can someone help me with this?
The image is not corrupted and works fine at other places.
The user jash_patel reports an issue with uploading category icon images on their Discourse site (version 2.7.0), where non-SVG formats like PNG fail despite the images being valid. simon asks for details and suggests checking the authorized extensions site settings. jash_patel clarifies that SVG uploads work, but PNGs still fail. pfaffman confirms the installation was via the official standard method. The user resolves the issue by enabling SVGs in settings, but the PNG error persists, indicating a possible restriction in file type permissions jash_patel.
I have been trying to upload images for categories on my forum. I have tried uploading many different types of images but there is this one error every time. Can someone help me with this?
The image is not corrupted and works fine at other places.
So far I haven’t been able to reproduce this issue. What version of Discourse is your site on? Do you know if the error only happens with one category on your site, or do you get an error when you attempt to upload a logo image to any categories on your site?
The site is on version 2.7.0 . This error occurs for all categories(even the default ones) when I try to upload any image as an icon.
How did you install Discourse? Was it a Discourse official Standard Installation?
Yes, I have installed it following the installation guide.
@simon An update to the issue description, it occurs on all uploads except SVGs. The uploads where SVGs are supported too, works fine for SVGs(not for other formats).
Are the file types that it is failing for listed in either your authorized extensions or authorized extensions for staff site settings? You can find both of those settings by entering authorized extensions into your site settings search box.
Thank you for the solution. This enables me to add SVGs and I can deal with only SVGs for my site. The error with PNG remains the same.