x

HTML pages from Assets are downloading instead of displaying

Hello, hopefully this is the correct place to post this.  I've been hosting some HTML pages here for several months now, located in the Assets folder of my site themes, so they were accessible like so: http://cpmtiger.weebly.com/files/theme/TestPage/test-weebly-page.html  A few days ago, however, trying to visit the site started resulting in the html file being downloaded to the browser instead of displaying. Stylesheets, javascript, and most of my image files in Assets also seem to no longer be properly accessible.

I haven't changed anything in the code recently enough to explain this; in fact, a page I haven't edited since August or so is also affected by this. I did some research and it seems like the files are passing an incorrect content-type - text/plain, rather than text/html (or text/png, etc.). I tried changing the HTML's meta tag even though it should have been working already, but it looks like it's being overwritten by something on Weebly's end. 

Is there anything I can do that might overwrite it, or perhaps someone from Weebly knows of something that might have updated over the weekend that could explain what happened (and can maybe suggest a fix for it?) Thanks!

Tags (2)
12,256 Views
Message 1 of 26
Report
1 Best Answer
Square

Best Answer

I got an update back, but unfortunately it's not the answer you probably wanted. HTML files are not supposed to be uploaded to a theme, and the fact that it worked for a time was actually a bug (rather than the other way around). Sorry, guys. Smiley Sad

View Best Answer >

11,407 Views
Message 20 of 26
Report
25 REPLIES 25

Hello everyone!  I was wondeing if anyone has found a work around?  I just realised that this was a problem.  Man Weebly, what are you doing?!?

2,622 Views
Message 27 of 26
Report

Hello, I've also been trying to upload custom HTML pages to my site. Was this issue ever resolved, and if not, is there a workaround? Thanks!

2,582 Views
Message 27 of 26
Report

This was not resolved. You may be able to copy your custom code and embed it into your page with the embed code element.

Sorry about that!

Thanks,

Erin

2,579 Views
Message 27 of 26
Report

Thought I'd replied to this before, but yeah, it was a bug that it was working through the Assets folder, apparently. 

I wound up getting my code to work using the Embed Code widget in the default page-builder to place the HTML, and then called my CSS and JavaScript files in the page's header code (Pages > the page you want to edit > SEO Settings). The image files worked fine from there as well.

2,575 Views
Message 27 of 26
Report

Not the prettiest way of handling it, especially for a non-coder like me, but the main thing is that this works

1,600 Views
Message 27 of 26
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.