Sign in to follow this  
wombat

MIME type error for images on 'cloud IDE' Koding

Recommended Posts

Hi, 

 

I'm trying to use the Koding cloud service for my Phaser stuff. Koding runs a virtual Ubuntu system, on which runs the apache web server. When I put my project files in the servers 'web' directory, I can load the index.html and various javascript files into my browser by navigating to the virtual host's external web adress. The images however are not loaded, and when I check the console in my browser I see the error message 

 

Phaser.Loader error loading file: cloud from URL /snel2/images/cloud.png phaser.min.js:9
  1. Resource interpreted as Image but transferred with MIME type text/html: "http://drphil.kd.io/snel2/images/hest.png".

 

The link to the images adress on the server is working: I can open the image directly by clicking the link provided in the error message (But I guess that won't be the case when the virtual host is shut off, if anyone is curious).

 

I know next to nothing about javascript or servers, so I post this in the hope that I'm making some simple mistake that can easily be spotted by someone who knows what he/she is doing. Thanks for reading!

Share this post


Link to post
Share on other sites

Interesting problem.
I open the page in Firefox, and I see a small stickman walking around behind a cloud.

I open the page in Chrome, and I see little black squares with green borders.

I was going to suggest trying to change the image loading line, but it works in FF.

Maybe the code is loading too fast for the images in Chrome...?

Share this post


Link to post
Share on other sites

@gonzalez32: Sorry for not answering, I've been away from the forum. Yes and no, the 'solution' that I found was using Firefox instead of Chrome when on Koding. (The code works fine in Chrome in general, it's just when using Koding, which really is quite slow, that this particular strangeness occurs). I've tried cloud9 as well, which works with both Firefox and Chrome, as long as you remeber to use public projects.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.