Forum fails to recognize a .dcf file which contains embedded SVG.
Leads to:
7Zipping it works though (could be a workaround).
Forum fails to recognize a .dcf file which contains embedded SVG.
Leads to:
7Zipping it works though (could be a workaround).
I think Discourse may be recognising it as an SVG image based on content, and treating it as an .svg upload.
I'm not certain, but the forum code I found looks like it may do that, after a quick read. discourse/lib/upload_creator.rb at main · discourse/discourse · GitHub -- There's a lot there that I don't know the details of, and I could even have completely the wrong part of their code
but it seems plausible.
If my guess is correct, I think that even if we allowed .SVG uploads, the forum would potentially modify the files to sanitize the XML/SVG tags (user-posted SVG can be unsafe on a web forum, similar to user-posted HTML needing to be restricted to a small subset of safe tags), which might mean it removes tags from the surrounding button XML, not just the SVG image part. (Although I'm not completely sure, and could be wrong about the code I was looking at.)
Thanks Leo. Users will have to zip their dcfs then ... not a big deal, just a little heavier for a process that is mostly supposed to help beginners.
Have you tried appending a .txt extension?
Not working neither. But it was worth a try ![]()
I think Leo's right: the error message is not suitable since it declares I'm uploading an unauthorized extension which is not true. There is some kind of file content inspection.