Resource interpreted as image but transferred with MIME type text/html - Magento

前端 未结 15 2299
孤城傲影
孤城傲影 2020-12-05 06:48

I\'m getting below error when uploading a new product image for my Magento shop.

Resource interpreted as image but transferred with MIME type text/html
         


        
15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 07:11

    I had the same problem once, because of capitalization.

    My Colleagues were working on a Mac and added some camel-cased files, but it showed up lowercased in CSS. This works fine on Mac, but I was working on Linux. Mac doesn't distinguish filenames having different cases but Linux does. Most servers out there run on Linux.

    example:

    epicimage.jpg !== EpicImage.jpg
    

    Thanks to the Chrome Dev Tools, the problem could be found very easy. Simply clicking on the image url showed me our 404 page. Mystery solved :D

提交回复
热议问题