Hi there,
Indeed, you will need to remove the first line:
<?xml version="1.0" encoding="utf-8"?>
Then they will upload fine.
I probably should have been a little clearer.
SVG files are actually XML code, and for some reason declaring this tag at the top of a file can cause issues when uploading.
I have seen this before and personally remove everything outside of the <svg> tag, both to avoid this and for a neater file.
Additionally, I run my files through something called SVG Cleaner which you can find here:
https://github.com/RazrFalcon/svgcleaner-gui/releases
Thread Starter
myrdin
(@myrdin)
Thank you for answering and for the explanations. I removed everything around the <svg> tag but i still got the error. I also tried the svgcleaner.
-
This reply was modified 8 years, 8 months ago by
myrdin.
You only need to remove the first line in the files I tested from that site:
<?xml version="1.0" encoding="utf-8"?>
How did you go?
I managed to replicate exactly what you described using the Italy maps, I then opened the SVG files in my code editor and removed the first line as mentioned, then both files uploaded fine.
I hope you got it sorted.
Thread Starter
myrdin
(@myrdin)
It works thanks a lot for your help.
Great news! Thanks for letting me know 😁