OJS and images attached to XML

Have an issue with clean OJS (3.4.0.4) setup (without any additional plugins). Want to upload a xml file and an image attached to them via Submissions → Publication → Galleys
1

And there is a row in xml file:
graphic xmlns:xlink=“http://www.w3.org/1999/xlink” xlink:href=“photo.jpg”

However images are not showing in a browser (Microsoft Edge).
2

And finally, when I check the file in Windows Explorer, I found that image name is encoded.
3

I think this is the main reason why pictures in a browser are invalid.

Can you help me with that?

Thanks.

Hi @sergej.papper,

I believe you are trying to share some screenshots by linking to Github in this post? They are not rendering in the post. Could you re-share, please, in a different format?

Thanks,

Roger
PKP Team

Since I can not found an option to edit initial post, I will re-share post one more time.

Have an issue with clean OJS (3.4.0.4) setup (without any additional plugins). Want to upload a xml file and an image attached to them via Submissions → Publication → Galleys

And there is a row in xml file:
graphic xmlns:xlink=“http://www.w3.org/1999/xlink” xlink:href=“photo.jpg”

However images are not showing in a browser (Microsoft Edge).

And finally, when I check the file in Windows Explorer, I found that image name is encoded.
3

The interesting part, is that when I try to upload a HTML file with img src attributes, everything goes fine - images are showing.

Hi @sergej.papper,

Thank you for clarifying. I see a bit better what is going on here. As a next step: I’d recommend using your browser’s dev tools to inspect the Network Requests. Like, are you getting a 404 or 500 error when the browser tries to load the image? If so, this might indicate there is an error on your server (and as such you could check your PHP error logs to ascertain what exactly the error is and post the error message here).

-Roger
PKP Team

Hi.

Network shows me next information:
Screenshot 2024-02-19 094504

However files are located and names here:

P.S. I know, that TIF files are not support by Microsoft Edge, but this is not the point at this moment. I can change it to, for example, JPG, but result will be the same.

1 Like