Home > OS >  How to make S3 read svg file?
How to make S3 read svg file?

Time:02-23

I have a public bucket on s3 that contains files(SVG, png, jpg) all files working fine except SVG one when I open it I got this thing:

enter image description here

I add metadata for the SVG file but again same error:

enter image description here

CodePudding user response:

The XML Parsing error: syntax error is a generic browser error saying that your XML file is not well formed according to the XML specification.

Read more about this error here: XML Parsing error: syntax error

In this case your SVG file is invalid, and you need to upload a valid one.

When you upload a SVG file via console you do not need to add the metadata as the S3 service will get by the file metadata and you be able to read this file on the browser without problems.

CodePudding user response:

This is an message indicating that there is a problem with the XML file. In particular, it seems that there is a problem with the SVG file itself.

  • Related