הוסף את סיומת הקובץ .svg ל"קבצי תמונה"

One Discourse forum that I use has the default setting to only allow “image files”, however .svg files say that they are “not authorized”, while .svg files are images, just vector ones instead of raster ones, that means they can be scaled without losing quality. Also, the sizes are comparable too, if not smaller, when I converted a .png to a .svg:

  • The .png file had 8190 bytes.
  • The .svg file had 4273 bytes.

So is there any reason as to why a .svg file isn’t treated as an image file?

לייק 1

An admin sets the accepted file types. Svg isn’t in there by default, but it can be added from the authorized_extensions setting. If you ask your admin, they may consider it?

5 לייקים

Problem is, the admins ignore direct messages, quoting one:

And they ignore 99.9% of the threads on the forums.

לייק 1

Is there a site feedback category that you can make those kinds of requests in? Or maybe contact them from the email address on the forum’s /about page?

לייק 1

Isn’t this a potential security risk, unless the file is sanitized?

לייק 1

I’m afraid I don’t know the full answer to that, but I think discourse does some checking as part of the upload?

2 לייקים

That’s not a problem that can be solved here. If you don’t like how the forum is run, then don’t use it or start your own.

לייק 1