Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Fix Image Upload Issue in WordPress (7 Easy Tips)

Image upload errors can be frustrating, especially for beginners. One moment, everything works fine, and the next, you can’t upload an image without any changes on your end.

This is actually one of the common image issues in WordPress. The good news is that fixing it is easier than you might think.

We have run into countless image upload issues on our own WordPress websites, so we know how annoying these errors can be. Luckily, this also means we know several methods to troubleshoot and fix these problems.

In this article, we’ll guide you through the steps to fix image upload issues in WordPress. Follow along, and you’ll be back to uploading images in no time.

Fixing image upload issues in WordPress

What Causes the Image Upload Issue in WordPress?

There are a few common reasons why you might have trouble uploading images in WordPress.

First, cross-browser issues can be a factor. Sometimes, an image uploads fine in one browser but not in another. Different browsers handle file uploads differently, which can lead to problems.

Invalid file names can also cause problems. If your image file name has special characters or spaces, then WordPress might not accept it. That’s why we recommend always using simple file names with letters, numbers, and dashes.

The cache can interfere with image uploads, too. An outdated cache can cause all sorts of issues, so clearing your site cache can resolve upload problems.

Plus, some plugins can conflict with the image upload process. A plugin might be causing an issue without you realizing it. For example, the settings or features of a plugin sometimes interfere with the upload function.

Or your theme might be the culprit. Some themes are not built properly and can interfere with image uploads. A poorly coded theme can create conflicts and errors that prevent successful uploads.

It could also be due to incorrect file permissions. This means WordPress can’t write to your uploads folder, and you’ll face errors during the upload if the permissions are not set correctly.

Finally, it might be a memory limit problem. If your site doesn’t have enough memory allocated by your hosting services, then it can’t handle large files. This can result in upload errors or incomplete uploads.

Don’t want to handle image issues on your own? Let the experts at WPBeginner Pro Services help! We offer affordable Emergency WordPress Support to quickly fix WordPress image issues or any other errors. Stop stressing over your site and get it taken care of. Check out WordPress Support Services today!

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, then keep on reading.

Fixing the Image Upload Issue in WordPress

Understanding the common causes of image upload issues in WordPress is the first step. And now that you know some of the most common reasons for image upload issues in WordPress, we’ll show you how to fix them.

Here is a quick overview of all the tips we’ll cover in this guide:

Ready? Let’s get started.

Tip 1: Reload the Page or Test With a Different Browser

First of all, more often than not, reloading the page can fix the issue. This may sound like a simple fix, but it often works.

The image upload issue can be caused by your login session expiring. If this happens, reloading the page or navigating back from another tab will log you out. You will need to log in again.

The issue might also occur because WordPress is losing its connection with the browser. This can happen due to issues with your internet service provider or temporary problems with your WordPress host. Reloading the page and reuploading the image file can resolve this error.

Other times, the image upload issue might be browser-related. You might want to try uploading your image using a different web browser. This can help you identify whether the problem is specific to your current browser.

Tip 2: Reupload the Image Through the Media Library

If the issue continues after reloading the page or switching to a different browser, then you might want to try reuploading the image through the media library.

So, instead of uploading the image directly through the post or page, you’ll want to go to Media » Add New Media File from your WordPress dashboard.

Then, simply click ‘Select Files’ and try uploading the image there.

Uploading images through the Media Library

This can sometimes fix the issue.

Tip 3: Rename Your Image File

If your image file name contains spaces, then WordPress might reject it. Also, you should avoid using special characters like ‘#,’ ‘!,’ or ‘@.’ These characters can create issues because web servers and browsers may not support them.

So, let’s make sure you rename your image file to something simple and straightforward. You’ll want to use only letters, numbers, and dashes.

For example, instead of ‘my image #1!.jpg,’ you can rename it to ‘my-image-1.jpg.’

Tip 4: Clear Your Cache

An outdated cache can lead to different issues, including image upload problems.

Caching is used to speed up your site by storing copies of your content, but it can sometimes cause conflicts. An outdated or corrupted cache can prevent new uploads from being recognized or processed correctly.

Refreshing the cache can often resolve the issue by ensuring that your site processes the new upload without any old, conflicting data getting in the way.

Luckily, it’s easy to clear your site cache. This can usually be done through your caching plugin, like WP Rocket, or your hosting provider’s control panel.

How to clear the WP Rocket cache manually

Then, you might also want to clear your browser cache. Your browser stores copies of web pages, including images, to load sites faster the next time you visit them. This is why an outdated browser cache can cause issues with new uploads.

To clear your browser cache, you typically need to go into the browser settings, find the option for clearing browsing data or cache, and select it.

For more details on clearing the cache, you can see our guide on how to clear your WordPress cache. Once the cache is cleared, go ahead and try uploading the image again.

Tip 5: Check for Plugin and Theme Issues

Sometimes, plugins or themes conflict with the image upload process. This can happen because some plugins or themes are not fully compatible with the latest version of WordPress or with each other.

To diagnose and fix this, you’ll need to perform some troubleshooting steps.

First, you’ll want to deactivate all your plugins. To do this, go to the ‘Plugins’ section in your WordPress dashboard and select ‘Deactivate’ for each plugin.

The Deactivate button under a plugin's name

You can also deactivate all of them at once.

For more detailed instructions, you can refer to our guide on how to easily deactivate WordPress plugins.

Next, you can switch to a default theme, like Twenty Twenty-One.

You can do this by going to Appearance » Themes in your WordPress dashboard and activating the default theme.

Activating Twenty Twenty-One

This step helps you determine if the issue is related to your current theme.

Then, try uploading the image again. If the upload works, it means that one of your plugins or your previous theme caused the problem.

To find the exact cause, you can start reactivating your plugins one by one. After activating each plugin, try uploading an image again. This way, you can find the specific plugin causing the conflict.

If the problem reappears after activating a particular plugin, you’ve found the culprit. It’s now time to look for an alternative or contact WordPress support.

If switching plugins doesn’t solve the issue, it might be related to the theme you were using. You can contact the theme developer for support or consider using a different WordPress theme.

Tip 6: Adjust the File Permissions

The image upload issue in WordPress can also happen because of incorrect file permissions. Your WordPress files are stored on your web hosting server and need specific file and directory permissions to work.

Wrong file permissions prevent WordPress from reading or uploading files on the hosting server. You may get the following WordPress error when uploading an image file:

‘Unable to create directory wp-content/uploads/2019/04. Is its parent directory writable by the server?’

Unable to create directory error

Or you might see the error:

‘The uploaded file could not be moved to wp-content/uploads/.’

Another sign of this issue is that your images disappear from the WordPress media library.

Missing images in media library

My Site Was Working Fine Before. Who Changed the File Permissions?

This could happen due to a number of reasons. A misconfiguration on your shared hosting server can sometimes change those permissions without you doing anything.

For example, your web hosting provider may have run an upgrade that unexpectedly changed file permissions.

If everything else is working fine on your WordPress website, then you can simply apply the correct file permissions to fix the image upload issue.

Note: This method is a bit more advanced. If you need help, don’t hesitate to contact our Emergency WordPress Support for assistance.

Changing File Permissions

In order to change file permissions, you will need to use an FTP client.

First, let’s connect to your website via FTP and then switch to the /wp-content/ folder. Inside, you will find the uploads folder, which is where WordPress stores all your media uploads, including images.

Now right-click on the uploads directory and then select ‘File permissions.’

Opening file permissions dialog box for uploads folder

This will bring up the file permissions dialog box.

From here, you will need to set file permissions for the uploads directory and all the subdirectories inside it to ‘744’.

Change folder permissions

To do that, you can enter 744 into the numeric value box and check the box next to ‘Recurse into subdirectories.’ Then, simply click the Apply to directories only radio button.

Go ahead and click the ‘OK’ button to apply these changes. Your FTP client will now start applying file permissions to the directories.

Note: If setting directory permissions to 744 does not seem to solve your problem, then try 755.

In the next step, you will need to set file permissions for all the files in the uploads directory.

To do that, right-click on the uploads directory and select file permissions. In the file permissions dialog box, change the numeric value to ‘644’.

Then, you can check the box next to ‘Recurse into subdirectories’ and select Apply to files only.’

Finally, simply click on the ‘OK’ button to apply these changes.

File permissions

The FTP client will now change the permissions for all files inside the uploads folder. Once done, you can go back to your WordPress admin area and try uploading images again.

If you have any file upload forms on your website, you should test those as well.

Note: If you don’t know how to use an FTP client, then you can also use the file manager provided by your WordPress hosting company. Since the screenshots will vary from each host, you will need to talk to their support to find instructions.

Tip 7: Increase Your PHP Memory Limit

Sometimes, image upload issues occur because WordPress doesn’t have enough memory to process the upload. Increasing your PHP memory limit can help fix this.

Typically, you can do this by editing your wp-config.php file. However, the easiest way is to contact your hosting provider for help. They can increase your memory limit.

For more details, see our tutorial on how to increase the PHP memory limit in WordPress.

We hope this article helped you fix the image upload issue in WordPress. You may also want to see our complete troubleshooting guide or our guide on how to fix the most common WordPress errors.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

297 CommentsLeave a Reply

  1. Spencer

    None of these comments or the original post seem to solve the issue for me. :(
    Totally random. No idea why this would occur mid way between an upload.

  2. sparkandshine

    744 is not enough because of no wirte permission.

  3. Angela

    What if I’m working on a localhost with xampp and I don’t have upload the website on a hosting site? Right now half of my images are ok but the other half I’m uploading are broken, as it shows.

  4. Shawn

    755 worked for me, thanks a lot.

  5. Anel

    I have fix the problem with old iamges, but when I will add a new image I have a some problem. :O

  6. Kenny

    I just installed WordPress 4.1.1 for the first time, and I can’t upload any images at all. Says HTTP error. I tried changing the permission in FTP, made no differences, still can’t upload images. Can you please help?

  7. EKO

    ATTENTION

    If after this fix… images still fail to upload….

    Go to your site in your favorite privacy enabled browser ;)

    WORDPRESS>>>SETTING>>>MEDIA>>>

    Change “Large Size” dimensions to Max width “4400” Max Height “4400” or whatever the largest size image you plan on uploading!

    Enjoy the fix after the fix!

  8. Tbwhs.com

    I recently had this problem. I believe my site was hacked or something. I downloaded a plugin that was pirated or so I believe. I think there was a back door virus in it or something. Kind of odd because someone uploaded a bunch of images today and then I suddenly got this error message and I couldn’t upload anymore images through Wordpress.

    Always change your FTP once a year to prevent hacks :). I do it just to be safe.

  9. Malene Overgaard

    Great post and even though the suggested didn’t work for me, I was inspired to deactivate latest updated plugins which actually fixed the problem – If any run into this problem all of sudden, the try deactivating the plugins first.

  10. Sruthi

    My images are not uploading and error occuring in saving media attachment message is coming so plz solve the issue i have tried above solution but it is not working

  11. Minki

    Just to help on this – I thought I had the same issue, followed the steps above and still nothing. I tried a different image and that worked OK. I then realised that, though the image I was trying to upload was small enough file wise, and was a png, it was WAY too big dimension wise. I scaled it, tried again and it worked. Just thought I would mention this as the problem may be something as simple as that!

  12. Macca Xinlei Lee

    I screwed up my file permissions because of this and now my site doesn’t display any images at all. Jesus Christ how do I fix this now?

  13. Dave Howard

    I also had this problem. After a lot of trial and error, it turned out that something in WP was duplicating files. This took up all of my upload space. I deleted these files and it all worked again.

    • Naqqash Khan

      Thanks its solved my issue too :) same reason.

  14. Imtiaz Ahmed Shuvo

    Thanks for the solution. But this time it is not working for me. Still facing the same upload issue. Do you think I need to try some other thing ?

  15. Dr. Shawn Soszka

    I’m having a problem when uploading images to one of my WP installs. I have several others on the same server and the images upload normally on these installs.

    I’ve tried changing the CHMOD codes for both the upload directory (755), disabling all of the plugins, etc. No effect.

    Every image I upload results in the broken image file showing up in the media gallery and on the site.

    Oddest part is this all started last month after years without problems.

    Even odder: the upload directory stopped making monthly folders, even when the box is checked in settings!

    Any thoughts?

  16. Dr. Shawn Soszka

    I’m having the same problem, with my main WP install, the others work fine. I’ve tried changing the CHMOD codes as recommended, disabling all of the plugins, etc. No effect. Every image I upload results in the broken image file showing up in the media gallery and on the site. Oddest part is this all started last month after years without problems. Even odder: the upload directory stopped making monthly folders, even when the box is checked in settings! Any thoughts?

    FIXED: I found that I had duplicate wp-content/upload folders and my wp settings/media was pointing to the wrong folder.

  17. zilla

    hello, last week I experienced problems with 90% images on my new wp site, I think that it is related to recent upload of a new plugin. I have deactivated all plug-ins, and it solved the problem, all images showed up again on the site. One week after that miraculous repair of the site images disappeared again… I tried all your suggestions and changed the permissions, but Filezilla shows message: command not understood… please help me

  18. AJW

    I am getting a grey box that is appearing over jpegs I upload to the site. How do I fix this problem?

  19. Amura-AN

    I can’t even go further than “browse” to get onto the Media Library.
    It is taking ages , 15 minutes , I have been still waiting?
    Any idea whats wrong with that? I also contacted my web designer but its worth asking around while I am waiting. Thanks

  20. keko_jones

    i’m trying to change the permission on filezilla but i get this error:
    500 ‘SITE CHMOD 644 BritaxcarSeat-140×130.jpg’: command not understood

  21. Ron

    After i changed the permissions my images are gone please help!

  22. WPBeginner Staff

    We hope you have already tried scanning your home computer for malware and viruses.

    Another thing you can try is to delete the .htaccess file from your website’ root directory. Make sure you download it as backup to your computer first before deleting it from your webserver.

    • Haruko Haruhara

      Ok, we tried scanning for malware, we tried changing permissions — no good. :(

      • Willo

        I am in the same boat as you here, did you find a solution?

    • Haruko Haruhara

      Yeah, we did that; we tried deleting the .htaccess file. We tried changing the permissions, that didn’t work. We even have an old defunct Wordpress.com site and are able to upload photos onto there just fine. Sigh ….

      Also, when we try to make a new post, the new post doesn’t fully load. It gets cut off halfway through.

      … we’re flummoxed. At this point, we don’t see an option but moving to a new host.

  23. Haruko Haruhara

    I hope this will work.

    Our weird problem is we can’t upload images from our home computer, but the web host tech can upload them to our site, and we can upload images to our site ourselves from other computers. We’ve tried three different browsers on our home computer but get the HTTP error on all three browsers. It’s so frustrating and mysterious. We can’t figure out if its an ISP problem or a bad cookie. It’s been such a headache.

  24. JennaEmery

    Uh, upon downloading FileZilla my antivirus is going NUTS! It keeps marking it as malware, spam, and a Trojan Horse. Is there perhaps an alternate program that won’t crash my computer?

  25. Emily

    Hi,

    I followed these instructions, and now the images on my homepage arent visible as well as any new images I use on posts when I visit the website. Does anyone know how to undo everything I did and/or get it back to how it was?

    Thanks

  26. Vanessa Holden

    I’m having trouble figuring out Filezilla. All of the fields are blank except for one, and I’ve no idea how to connect to my website using this FTP thing, and it’s SO frustrating. I’ve only ever had trouble with photos since WordPress revamped the New Post tab.

  27. Trey

    I uploaded 18 pic files to my portfolio and they are all published to view on my website but when i view my site only 16 are showing up I can’t get the other 2 to display on my website. Can Someone help me with this please.

  28. Brit

    Thank you, thank you, thank you!!! =)

  29. Kristen

    Thank you so much for this article! I’ve been pulling my hair out searching forums and articles and this fixed the problem perfectly!! I used 755 and it worked perfectly.

  30. Somnath

    I did everything as per your instruction .I couldnt fix it .My images are still corrupting .What can be other issues?

  31. Frank

    Any idea on how to fix the image upload issue under 1and1 windows shared hosting?

  32. Junseok, Bae

    I’m sorry for my poor English and I’m programmer+designer for 20years. From the 3.8~3.9, there’s big problem and it can not be solved by normal user because it is database problem(not the image.. or plug-in’s problem). Once some data was put into database, it can be revised only by manual method. Wordpress is really good CMS and I love it. I think this problem may be the price of using.

  33. Julian

    Thank you so much! My problem with the pictures was that. Now is fixed! The problem was permissions there were in the folders and files. Thank you!

  34. Alex

    I found that Jetpack Photon was blocking some images from displaying. If you find that only certain images are not loading this could be the problem with 3.8 and 3.8.1

  35. chrys

    Hi,

    I have an issue with uploading files but ONLY on media when I click add button. The drag and drop field has disappeared and when I click the add button nothing happens.
    Everywhere else in the site i can upload photo for feature image or insert image in a post. There I can go fetch the file on my computer.
    If I switch to default theme it’s back to normal.

    I have tried everything on this post and from other posts:
    disable plugins, rename plugin folder to make sure they wouldn’t interfere, changing permissions, download again WP 3.8.1, Download again theme etc.
    So I guess it’s a theme problem but the developer won’t help for now. What can i do??
    The more time is passing by, the more I need to publish on my site + I have comments to posts I don’t wanna loose if I restore my site to a previous date..

    Please anyone have an idea??

    Thanks

    • Praveen

      Same problem with me :( If you got the solution then please tell me.

  36. Jim

    I had a similar problem after migrating wordpress to a new server.
    In Plesk ‘Hosting Settings’ the default PHP installation was as an Apache Module. I switched to run as A FastCGI application and the uploads are working again without messing up the directory permissions because it runs as a User (with permissions)

    Since this isn’t something not always thought of, I thought I’d share.

    • Tom

      I am also running plesk and this fix worked for me. Permissions on folders were already set to 755 to no avail.

  37. Arlene

    I used to be able to upload images easily to posts and My Book Table–no problems. Then I stupidly upgraded to the newest version and can’t get the uploader link to work at all. I can change header and background but can’t upload anything from my MAC desktop as I need to do.

    I have no time for this and I have no patience with tech and am frustrated trying to find a solution that will not take all day–including downgrading my wp!

    Can’t somebody at wordpress fix this internernally or make a plugin to fix it and let us get on with our business? This is a waste of time.

  38. Steve

    I downloaded Filezilla and Norton tells me it’s not safe and deletes it. I also found article about Filezilla malware. So I tried to use the cpanel file manager. It was already set to 755 and it would not allow me to make any changes. I’m not totally new to wordpress but far from a guru. I’ve already spent several hours on this issue and it’s very frustrating that there are no apparent fixes.

    • WPBeginner Support

      Instead of installing Filezilla from sourceforge, please download it from the Filezilla website. If you do not want to use Filezilla, then you can try WinSCP which is another open source FTP client for windows.

      Admin

  39. Minki

    I also tried the steps on here and they didn’t work, but after reading the comments, I tried 755 on the folder permissions and that seems to work.

    THANK YOU!

  40. James C.

    Ok folks, I read your solution, tried it and it did not work. I upgraded to 3.8 and still have the same problem with images not uploading. However, I found something interesting. I used Filezilla to change permissions for the upload folder to 744 and 755 – neither worked. Then I found something strange. The permission change is not taking on the folder. Each time I go back to try something else, I noticed that the permissions on the upload folder goes back to 777 – even though I changed it and Filezilla says the changes were successful. Also, I can drag the images into the upload/2013/11 folder, but cannot drag into upload/2014/11 folder – the error msg on Filezilla says “critical file transfer error”. Plugins are: Nextgen gallery, Blackstudio TinyMCE Widget and Contact form 7. Your thoughts?

  41. Vijay Sharma

    Thanks Balkhi and Everyone,

    this was the info I was looking for to fix the broken image links.
    Has anyone suggestions to stop SPAM from bot. Using CAPTCHA plugin has been denying my own log in to my own blog stating that you do not have access to this website!

  42. Arkhang

    Ouch.

    It seems like this “744” method would never work on folders… actually, you need “execute” rights on a folder to be able to open it. If you can’t open, you can’t read any content.

    However, your article has put me on the right track, as I faced the same issue after a fresh 3.8 install. But I think maybe you should amend your article and replace 744 by 755 for folders.

    Next step, I wish to tell Wordpress to create future folders for my pictures with correct rights. Hope htaccess will help me for that.

  43. Ahmed

    HI there i upgraded my site to 3.8 wordpress and all the images display broken image i try to deactivate all the plugin and activating one by one nothing works.

    when i write new post is displays automatically my website default logo image although i inserted a image to the post when you view the post you can see the image but the main page it display default image this driving me crazy.

    i welcome if any one can help me to sort my problems about this broken images
    thanks

  44. IHR

    Hello! I was delighted to come across this article as I was also experiencing the same problem, having just upgraded to WordPress 3.8. Every time I uploaded an image to the media library, it would say there was a broken link. Initially, I tried following your instructions but this did not solve the problem. However, I changed the directory permissions to 755 instead of 744 and this worked! There is no broken link anymore and the images are displaying correctly.

  45. Jeremy Smith

    I also came across this post this morning, because a few days ago wordpress just stopped allowing me to upload images. it says it uploads, but then I just get the broken link icon, although all the info etc about the image is uploaded.

    So I followed all the instructions for changing file permissions, and still i have the problem. Someone at the office upgraded our wordpress to 3.7.1 and now I have upgraded it to 3.8 – could this be related to it?

    I am at a loss for what to do. Any suggestions most welcome. The site is at http://blog.wtmresponsibletourism.com

    Thanks

    Jeremy

    • WPBeginner Support

      Jeremy,

      Try changing directory permissions to 755 instead of 744 and apply them recursively to directors only. Let us know if this works for you. Another thing you can try is disabling jetpack’s photon module. If this resolves your problem then contact jetpack’s support.

      Admin

  46. Daniel Jiménez

    I find your article very timely.

    I have a question

    few days ago, a couple of images of the slider of my blog suddenly stopped displayed on the homepage, in the gallery of images of wordpress just a gray box the picture looked, however the pictures were hosting.

    In the browser, put the path to the images and scored the server error saying it did not exist.

    The download via ftp and came back up, went back to mark the route of the images in the browser and ZAZ! there were back.

    Is it an error with the hosting?, I’ve been looking for information about the problem in order to keep me from ever happening again.

    I follow your blog for some time and I found it very useful, greetings.

    • WPBeginner Support

      It is possible, see if you can reproduce the error and resolve it again the same way.

      Admin

  47. Mike

    My heart jumped for joy when I first saw the title of this post. Alas what I need help on was sooo close to this, but I had already tried permissions. If anybody could help with the problem below I would be ever so grateful.

    I am using Wordpress 3.7.1, Solostream WP-Clear 3.2.1 Theme, and Wordpress “Regenerate Thumbnails” plugin 2.2.4. (http://wordpress.org/plugins/regenerate-thumbnails/) I am getting the following error on about 80% of the thumbnail images I try to regenerate.

    function (){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);”function”===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&”string”!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this}

    If you have seen this error, know how to fix, it or know of another way to regenerate thumbnails PLEASE respond ASAP.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.