Images with certain file names won’t upload correctly in the media library

[ad_1]

I had an image called 7-solutions-burnout-blog-300×250.jpg that wouldn’t load into the media library, the thumbnail would show up blank. I tried changing the end of the file name to all sorts of things, still wouldn’t work. I disabled all plugins and purged the cache on WordPress and my browser, still wouldn’t work. Did a test on other images and they worked fine. Finally after going crazy, I made a test image in Photoshop and titled it test-300×250.jpg because I had a weird suspicion it was the “300×250” messing things up. Uploaded that file and it did not work. When I took the “300×250” off the file name, the image uploaded just fine. I noticed it happened even when I had “300-250” in the file name.

What is going on?! Please help

[ad_2]
1 Comment
  1. Don’t really have it confirmed, but you’re probably hitting a issue with how WordPress handles images. Everytime you upload a image, let’s say image1.jpg, WordPress will create additional variations of this image based on what the theme (and various plugins) has request, like image1-300×250.jpg.

    The image variations will all have a subname of -{width}x{height}.{filetype}, the same way your image was named. So either that type of naming is disallowed, or you’re hitting a size that’s already in the system.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer