worklight server preview wont show png resources anymore after configuring it to serve svg

37 Views Asked by At

I ran in the problem where svg images were not loading using WorkLight preview. I found the solution for that here: How can I configure Worklight to serve *.svg files with contentType=image/xml+svg?

After adding these lines

<mimeTypes>
    <type>svg=image/svg+xml</type>
</mimeTypes>

svg files appeared on preview, but now i can't load png files. Is there a way to make all the formats work?

1

There are 1 best solutions below

0
On BEST ANSWER

Did you try to add another type for .png then?

<mimeTypes>
    <type>svg=image/svg+xml</type>
    <type>png=image/png</type>
</mimeTypes>