Vous rencontrez des problèmes de téléversement d’images sur votre site WordPress ?
Pour la plupart des débutants, les erreurs de téléversement d’images peuvent être assez déroutantes car elles peuvent apparaître sans que vous ne fassiez quoi que ce soit de différent. En fait, l’échec du téléversement des images est l’un des problèmes les plus courants dans WordPress. Heureusement, il est assez facile à corriger, et vous pouvez le faire vous-même.
Dans cet article, nous allons vous afficher comment corriger l’outil de téléversement d’images dans WordPress.
![Fixing image upload issues in WordPress Fixing image upload issues in WordPress](https://www.wpbeginner.com/wp-content/uploads/2019/04/wpimageuploadissues.png)
Tutoriel vidéo
Si vous préférez des instructions écrites, continuez à lire.
Quelle est la cause du problème de téléchargement d’images dans WordPress ?
Le problème de téléversement d’images dans WordPress est généralement dû à des droits de fichiers incorrects. Vos fichiers WordPress sont stockés sur votre serveur web hébergeur et ont besoin de droits spécifiques sur les fichiers et les répertoires pour fonctionner.
De mauvais droits sur les fichiers empêchent WordPress de lire ou de téléverser des fichiers sur le serveur hébergeur. Vous pouvez obtenir l’erreur WordPress suivante lors du téléversement d’un fichier image :
‘Impossible de créer le répertoire wp-content/uploads/2019/04. Son répertoire parent est-il accessible en écriture par le serveur?’
![Unable to create directory error Unable to create directory error](https://www.wpbeginner.com/wp-content/uploads/2019/04/createdirectoryerror.png)
Il se peut aussi que l’erreur s’affiche :
‘L’outil téléversé n’a pas pu être déplacé vers wp-content/uploads/’.
Un autre signe de ce problème est la disparition de vos images de la médiathèque de WordPress.
![Missing images in media library Missing images in media library](https://www.wpbeginner.com/wp-content/uploads/2019/04/missingimages.png)
Mon site fonctionnait bien avant. Qui a modifié les droits d’accès aux fichiers ?
Cela peut se produire pour un certain nombre de raisons. Une mauvaise configuration de votre serveur d’hébergement mutualisé peut parfois modifier ces droits sans que vous ne fassiez quoi que ce soit.
Par exemple, votre fournisseur d’hébergement a effectué une mise à jour qui a modifié de manière inattendue les droits des fichiers.
Si tout le reste fonctionne correctement sur votre site WordPress, vous pouvez simplement appliquer les droits de fichier corrects pour corriger le problème de téléversement d’images.
Ceci étant dit, voyons comment définir des droits de fichiers corrects pour corriger les problèmes de téléversement d’images sur votre site WordPress.
Résolution du problème de téléchargement d’images sur WordPress
Afin de commander la modification des droits des fichiers, vous devez utiliser un client FTP.
Tout d’abord, connectez-vous à votre site via FTP, puis accédez au dossier /wp-content/. Vous y trouverez le dossier Outil de téléversement des médias, dans lequel WordPress stocke tous vos outils téléversés, y compris les images.
Cliquez avec le bouton droit de la souris sur le répertoire Téléversés et sélectionnez « Droits sur les fichiers ».
![Opening file permissions dialog box for uploads folder Opening file permissions dialog box for uploads folder](https://www.wpbeginner.com/wp-content/uploads/2019/04/wpuploadsftp.png)
La boîte de dialogue des droits d’accès aux fichiers s’affiche.
Tout d’abord, vous devez définir les droits d’accès au répertoire Téléversés et à tous les sous-répertoires qu’il contient sur « 744 ».
![Change folder permissions Change folder permissions](https://www.wpbeginner.com/wp-content/uploads/2019/04/change-folder-permissions.jpg)
Pour ce faire, saisissez 744 dans la case de valeur numérique, puis cochez la case située à côté de « Rechercher dans les sous-répertoires ». Cliquez ensuite sur le bouton radio « Appliquer uniquement aux répertoires« .
Cliquez sur le bouton « OK » pour appliquer ces modifications. Votre client FTP va maintenant commencer à appliquer les droits d’accès aux répertoires.
Note : Si le fait de définir les droits sur les répertoires à 744 ne semble pas résoudre votre problème, essayez alors 755.
À l’étape suivante, vous devrez définir les droits d’accès à tous les fichiers du répertoire Téléversés.
Pour ce faire, cliquez avec le bouton droit de la souris sur le répertoire Téléversés et sélectionnez Droits des fichiers. Dans la boîte de dialogue des droits d’accès aux fichiers, modifiez la valeur numérique en « 644 ».
Cochez la case située à côté de « Récurrence dans les sous-répertoires ». Ensuite, vous devez cliquer sur le bouton radio « Appliquer uniquement aux fichiers ».
Enfin, il suffit de cliquer sur le bouton « OK » pour appliquer ces modifications.
![File permissions File permissions](https://www.wpbeginner.com/wp-content/uploads/2019/04/filepermissions.jpg)
Le client FTP va maintenant modifier les droits de tous les fichiers contenus dans le dossier Téléversement. Une fois que c’est fait, vous pouvez retourner dans la zone d’administration de WordPress et réessayer de téléverser des images.
Si votre site comporte des formulaires de téléversement de fichiers, vous devez également les tester.
Note: Si vous ne savez pas comment utiliser un client FTP, vous pouvez également utiliser le gestionnaire de fichiers fourni par votre entreprise d’hébergement WordPress. Comme les captures d’écran varient d’un hébergeur à l’autre, vous devrez vous adresser à leur support pour trouver des instructions.
Nous espérons que cet article vous a aidé à corriger l’outil de téléversement d’images sur WordPress. Vous pouvez également consulter notre article sur la façon de choisir le meilleur hébergeur WordPress ou notre comparaison des meilleures alternatives à GoDaddy.
Si vous avez aimé cet article, veuillez alors vous abonner à notre chaîne YouTube pour obtenir des tutoriels vidéo sur WordPress. Vous pouvez également nous trouver sur Twitter et Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Spencer says
None of these comments or the original post seem to solve the issue for me.![:(](https://www.wpbeginner.com/fr/wp-content/plugins/classic-smilies/img/icon_sad.gif)
Totally random. No idea why this would occur mid way between an upload.
sparkandshine says
744 is not enough because of no wirte permission.
Angela says
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.
Shawn says
755 worked for me, thanks a lot.
Anel says
I have fix the problem with old iamges, but when I will add a new image I have a some problem. :O
Kenny says
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?
EKO says
ATTENTION
If after this fix… images still fail to upload….
Go to your site in your favorite privacy enabled browser![;)](https://www.wpbeginner.com/fr/wp-content/plugins/classic-smilies/img/icon_wink.gif)
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!
Tbwhs.com says
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.
Malene Overgaard says
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.
Sruthi says
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
Minki says
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!
Macca Xinlei Lee says
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?
Dave Howard says
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 says
Thanks its solved my issue too
same reason.
Imtiaz Ahmed Shuvo says
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 ?
Dr. Shawn Soszka says
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?
Dr. Shawn Soszka says
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.
zilla says
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
AJW says
I am getting a grey box that is appearing over jpegs I upload to the site. How do I fix this problem?
Amura-AN says
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
keko_jones says
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
WPBeginner Staff says
Change your permissions back. See this article for how to properly change permissions for uploads directory.
Ron says
After i changed the permissions my images are gone please help!
WPBeginner Staff says
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 says
Ok, we tried scanning for malware, we tried changing permissions — no good.![:(](https://www.wpbeginner.com/fr/wp-content/plugins/classic-smilies/img/icon_sad.gif)
Willo says
I am in the same boat as you here, did you find a solution?
Haruko Haruhara says
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.
Haruko Haruhara says
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.
WPBeginner Staff says
You can try WinSCP.
JennaEmery says
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?
Emily says
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
Tedi Permana says
Thanks so much . . .
755 perfectly work . . .
Vanessa Holden says
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.
Trey says
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.
Brit says
Thank you, thank you, thank you!!! =)
Kristen says
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.
Somnath says
I did everything as per your instruction .I couldnt fix it .My images are still corrupting .What can be other issues?
Frank says
Any idea on how to fix the image upload issue under 1and1 windows shared hosting?
Junseok, Bae says
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.
Julian says
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!
Alex says
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
chrys says
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 says
Same problem with me
If you got the solution then please tell me.
Jim says
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 says
I am also running plesk and this fix worked for me. Permissions on folders were already set to 755 to no avail.
Arlene says
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.
Steve says
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 says
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.
Administrateur
Minki says
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!
James C. says
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?
Vijay Sharma says
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!
Arkhang says
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.
Ahmed says
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
IHR says
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.
Jeremy Smith says
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 says
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.
Administrateur
Daniel Jiménez says
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 says
It is possible, see if you can reproduce the error and resolve it again the same way.
Administrateur
Mike says
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.
WPBeginner Support says
It could be a hosting issue, please try plugin’s support forum.
Administrateur