Posted by Mitch Mitchell on Feb 23, 2011
Every once in awhile I have problems uploading images to my blogs. I wasn’t sure what the deal was, but I finally decided it was time to go after the problem, as y’all know I will almost always do eventually. If you’re having problems uploading images, your reason could be in here.
Frankly I had multiple issues. One, I might try to upload an image and get this weird error message about my homespages and running out of space. Two, the image might upload to my computer, but wouldn’t give me the option of adding it to my post. That obviously does me no good whatsoever. And a couple of times it would just quit in the middle, and that would be that. I could just upload the image to my server and then pull it in, but that negates the WP Smush-it plugin I use to try to reduce the size of some of my images.
So I went online looking for my solutions. The most common solutions I came across were to increase the size of the memory of your site via adding code to a file called php.ini. Not everyone has that file, but it’s easy to create and add, and it actually has solved a problem for me in the past when I had problems after upgrading to WordPress 2.8. But across the board, it doesn’t always work.
I went looking to find out why all the recommendations weren’t working and I came across something interesting and, of course, it makes sense. I have what’s called “shared hosting” via 1&1. The main packages of all the large hosting companies are shared hosting, which keeps the prices down. It’s a great deal, and you pretty much get a lot of space.
Pretty much, that is. It turns out that not all hosts will allocate you all the space you think for everything you do. One of the things about 1&1 is that they restrict the total size of images you can upload in a month. I never knew that until I started doing some reading. However, it doesn’t only depend on the images, strangely enough. It seems that one of the things taken into consideration is the space your plugins take up as well. So, for most of us, we get between 30 and 40 MB of space.
Since I knew I couldn’t do anything about the images, I decided to look at my plugins, which I’ve never really thought much about before. By totally getting rid of 5 plugins, it seems I cleaned up lots of space, and if I make sure not to upload a lot of large images, I shouldn’t have that problem anymore.
Ah, but my problem wasn’t completely over. At this point all that had improved is that images were uploading; I still couldn’t seem to access them. That meant it was time for more research, and after a long while I came upon something that I’d never considered. It seems that, depending on which browser you use, you could have problems uploading images after a certain point. I use Firefox, and I have always used the browser upload for my images. The recommendation I came across was to first clear the cache on my browser, close it, open it back up, then switch to the flash uploader instead.
Hey, I’m game for anything, even if it seems kind of petty. Lo and behold, it worked. It seems using flash overrides whatever blog you were having, and though it seems to take a little longer to process your images, at least it processes them. I did a test on an older post where I had uploaded a very large file, and it handled it with no problems. That turned out to be great because they WP Smush-it had the opportunity to make it a much smaller file, which would help that particular post load much faster.
There you go. If you find yourself having any problems with your images, it could be any of the reasons I mention above. The fixes are relatively simple, and it’s probably best to at least give them a try to see if they resolve your issue before going any further with all the files and such. One other recommendation was to call your hosting company to see if they would increase your file storage size, but everyone said it was doubtful that would actually work.