Open Magissia opened 4 years ago
Hi,
Did you have tried MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 ? It allows using SVG file as image files.
More info here: https://wiki.dolibarr.org/index.php?title=Setup_Other
Don't forget to close the issue if this solves it.
Cheers
I have set MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 but it makes no difference. No SVG do no work.
I have set MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 but it makes no difference. SVG do no work. thank you to help
I have set MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 but it makes no difference. No SVG do no work.
So it's a bug and not a feature request. You should open a new ticket as a bug. I'm not sure why svg files are not permitted but I can imagine it is for sexurity reason.
We are also facing problems uploading the SVG images in Media Browser in the CKE EDITOR. It says Bad Extension. I don't understand why SVG uploading will be disallowed for security reasons. What is the security vulnerability here. Could you explain @daraelmin.
We are also facing problems uploading the SVG images in Media Browser in the CKE EDITOR. It says Bad Extension. I don't understand why SVG uploading will be disallowed for security reasons. What is the security vulnerability here. Could you explain @daraelmin.
As svg is a xml file (witch mean that the display of the image is done by code not stored by pixel), it can be used for XXE and XXS attacks.
Cheers
security rerasons or not. When setting MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 it should work. But it doesn't. I agree with @daraelmin : It is a bug.
This has been referenced in #20716
Maybe add a svg cleaner to avoid problems
For me, with the variable MAIN_ALLOW_SVG_FILES_AS_IMAGES = 1 set, it's still not working in last stable version (19).
@mansia +1
Feature Request
Support SVG files as company logo
Use case
Simple logo are usually made in SVG or equivalent proprietary vector format.
Suggested implementation
Do not purposefully filter SVG files when uploaded as company logo, lib used to generated the PDF invoice seems to support SVG files as per tcpdf examples Modern web browser supports displaying SVG files as seen here
Suggested steps