x

Trying to access files in the assets folder, not sure what I'm doing wrong

I need to upload files to my assets folder to get a webgl app to work on my website. I'm following this guide: https://forum.unity3d.com/threads/solved-how-to-upload-a-webgl-game-and-embed-it-into-a-weebly-page....

I'm also referring to this information: https://community.weebly.com/t5/Site-Editor/Filepath-of-Site-s-Assets/td-p/27800

That isn't working, and I can't find the problem, so to remove some of the confounding variables I thought I'd start with just uploading a simple image to the assets folder and accessing it via the Embed Code element on my website. I've put the following test html on my site to see if it's working:

<!DOCTYPE html>
<html>
<body>

<h1>Foo</h1>
<img src="/files/theme/test.jpg"></img>
<h3>Bar</h3>

</body>
</html>


In preview mode, the text headings show up, but the image just shows a broken image link. Any idea what I'm doing wrong? I imagine it's something very simple, but I can't find any information on it.

EDIT:  I have also tried viewing the page after publishing it, and that makes no difference.  The image link is still broken.

3,258 Views
Message 1 of 2
Report
1 Best Answer

Best Answer
Okay, I've figured out why the image wasn't showing up, and I've fixed that - apparently I had renamed it but neglected to press Save, so I was pointing to the wrong filepath.

View Best Answer >

3,252 Views
Message 3 of 2
Report
1 REPLY 1

Best Answer
Okay, I've figured out why the image wasn't showing up, and I've fixed that - apparently I had renamed it but neglected to press Save, so I was pointing to the wrong filepath.
3,253 Views
Message 3 of 2
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.