Wrong MIME-type on JavaScript file

I've uploaded a directory with some JavaScript for an integration on a Weebly site.

It's in theme -> Edit HTML/CSS -> Assets

Here's the result on the published site. The MIME-type is set to PNG. I didn't see anywhere where I have control over this. How do I get Weebly to recognize directory.js as a JavaScript file and load it thus in the browser?

http://www.felconline.org/church-directory.html

See errors message in inspector, which should be some version of "Refused to execute script from 'http://www.felconline.org/files/theme/directory/directory.js' because its MIME type ('image/png') is not executable."

596 Views
Message 1 of 2
Report
1 REPLY 1
Square

Hi @robertknecht I don't think it's possible to upload an html file to the html/css area. I could be wrong, but I'm almost positive I've seen Adam make this comment before. 

584 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.