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

Comment Corrigé l’outil de Téléversement d’Image dans WordPress (étape par étape)

Note éditoriale : Nous percevons une commission sur les liens des partenaires sur WPBeginner. Les commissions n'affectent pas les opinions ou les évaluations de nos rédacteurs. En savoir plus sur Processus éditorial.

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

Tutoriel vidéo

Subscribe to WPBeginner

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

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

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

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

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

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.

Divulgation : Notre contenu est soutenu par les lecteurs. Cela signifie que si vous cliquez sur certains de nos liens, nous pouvons gagner une commission. Consultez comment WPBeginner est financé, pourquoi cela compte et comment vous pouvez nous soutenir. Voici notre processus éditorial.

Avatar

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.

L'ultime WordPress Toolkit

Accédez GRATUITEMENT à notre boîte à outils - une collection de produits et de ressources liés à WordPress que tous les professionnels devraient avoir !

Reader Interactions

297 commentairesLaisser une réponse

  1. 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!

  2. Didier says

    Let’s add the fact that WordPress creates a new folder each month, in wp-content/uploads.
    Probably, when the new folder is automaticaly created, it hasn’t the correct permissions :

    We have to modify the permissions each month.

    • WPBeginner Support says

      That should not normally be the case, we would recommend checking with your hosting provider to ensure they don’t have a security setting that could be the root of that issue.

      Administrateur

  3. Zoe says

    Hello,
    I am trying to upload several photos to my website page, and keep getting the message below:
    « The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels. »
    I have compressed the image multiple times, shrinking the size and optimizing it, yet I continue to receive this message even after shutting down the browser and starting again. Can you please advise me on how to upload these files? Thank you!

  4. Paul says

    Please I am trying to upload images from my computer for my blog it is telling me( « The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels. « ).. please what can I do

  5. Michelle says

    Yes!!! This was absolutely helpfuul and helped me fix the problem! Thank you so much! I am not a hard core computer person. I have just started my blog on WordPress so at the end of the day, I know it is me that has to handle any issues with it! Thannk you so much!!! This was awesome!

  6. Vinay Golchha says

    when i upload image nmy form it say « something wentwrong, please try again » .

    can u please help how to fix this issue?

    • WPBeginner Support says

      If none of our methods are working for you, we would recommend reaching out to your hosting provider to ensure there isn’t an error on their end.

      Administrateur

  7. Mary says

    I’m encountering the same issue only the fix that is suggested is not working. Is there something else that can be done?

  8. Matthew says

    First try to check PHP interpreter version on your server. If it 7.4 – this may cause problems. Change it to 7.3.

    • WPBeginner Support says

      Thank you for sharing that for some users who may be stuck with this error, for beginners we recommend reaching out to their hosting provider for checking if that is an issue. :)

      Administrateur

  9. Moni says

    Images to my wordpress site seem to upload correctly but then then disappear and an icon for broken image link appears. In the media library the image shows as a gray block. If I try to edit the image then I can see the image but when I save it again it’s gray again. I checked my permissions and the are set to 755.

    • WPBeginner Support says

      You may want to try updating to 744 and if that does not work, reach out to your hosting provider and they can normally assist.

      Administrateur

    • WPBeginner Support says

      Some hosting providers have a file manager that acts as an FTP but it would depend on your host for what is available.

      Administrateur

    • WPBeginner Support says

      For local installations, you would right-click the folder and go under Properties>Security to change the permissions.

      Administrateur

  10. Lucas says

    Hello
    FTP permissions are fine, when I try to upload, the original file goes to the FTP Uploads folder, but WordPress does not recognize it and displays error on upload, try again later

    Any tips?

    • WPBeginner Support says

      For some, that may be a solution but that is sadly, rarely the solution for this specific issue.

      Administrateur

  11. Adams says

     »Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page. »

    I keep getting the above error whenever I try to upload an image to my newly installed WordPress.

    Please advise on how to solve it. Thank you.

  12. Anita Hiltz says

    I’m not sure this will solve my problem. I have an educational website and we give away free books and educational materials. Recently I uploaded a PDF document (a chart) into my library, put it in 2 of my web pages, and created the link to open it. That was fine, but later, I decided to improve the document, took it off, recreated it and uploaded it again to the library. The original document was deleted completely from my own files, but when I upload it to my website it comes up with the OLD document. Somehow the « delete permanently » feature within the library is NOT actually deleting it. HELP!

  13. Evie says

    I just wanted to say, thank you so much for all the help you provide. I sometimes experience odd occurrences on my website, and when I Google the problem, your website always seems to simply answer my concerns.

    Keep up the excellent work!

  14. Kyree H says

    What URL do I type in when connecting via the FTP client? The actual domain that visitors use or my wordpress URL?

    • WPBeginner Support says

      That can vary based on your host, if your normal domain does not work you would want to check with your hosting provider

      Administrateur

  15. Muhammad Adil says

    Hurray, I did it just change URL from Setting-General than change « WordPress Address (URL) and Site Address (URL) » set both http to https and the issue has been resolved.

  16. Kristina says

    Hello anybody know how to fix getting your images to load the the Media Library? the files are located in the correct place on my server wp content / uploads. and i know my permissions are correcgt 755 and 0644 for the individual files.
    if i try to drag or load files from scratch into the Media Library Add New loader I always get this error-  » could not insert post into the database » thanks.

    • WPBeginner Support says

      You may want to ensure there are no special characters in your file name and you’ve tried increasing the maximum upload size for possible reasons.

      Administrateur

  17. Nicole says

    My photo’s that I am trying to upload are not even uploading. It is currently stuck on the download bar and I don’t know how to up the uploading process or how to stop it and try again. Please help. We are on a time crunch.

    Thank you.

  18. James Howlett says

    New image uploaded always has 640 permission. And if I access image with 640 permission, it will return 404. But if I change it to 644, I can access the image.

    Is 640 the correct permission for image uploaded? Or is it 644?

  19. sandra willie says

    I’m having a problem sizing my photos for a wordpress site and getting them to display correctly. I’ve resized the images several times to smaller, but they still appear showing only portion of the image and not the full image – even though I have also tried resizing in the edit section of the gallery! How do I get them to load in the full size if the image is a suitable size and resolution!

    • WPBeginner Support says

      When adding the image to a post/page you may want to check for the dropdown in the bottom right stating the size and set it to the full size for your image.

      Administrateur

  20. Jessica says

    Hi. When I upload a rectangular photo it uploads as a square cutting off most of the image. Any suggestions? Thank you!

    • WPBeginner Support says

      Your theme may be generating a new image size, you may want to check under Settings>Media to see if you’ve enabled image cropping there.

      Administrateur

  21. Alexandru says

    I’m having an issue when in editing mode upon uploading product images in gallery. I uploaded some images for a product gallery with no issues then I went to upload new ones for another product. I select the images/upload into gallery but instead of uploading the new ones I selected it uploads the ones from the previous upload.. Ctrl+F5, delete cookies, system restart… nothing. Still the same issue.
    Any ideas?

    • WPBeginner Support says

      It sounds like you would want to reach out to the support for the plugin you are using for your products to ensure that it is not a hiccup with the plugin itself.

      Administrateur

  22. Duong Nguyen says

    Hi everyone,

    I am scratching my head on this current issue with WordPress 5.0 logo uploading. The image file (59K) will upload to media no problem, but it WILL NOT show on the page, instead it would show my icon file instead. I don’t understand. I’ve tried resizing the size to 100px to no prevail.

    Could this be the theme fault? I am using OceanWP. I tried contacting my host and they recommend getting my logo designer to optimise it for WP5.0. Which doesn’t make sense. if anyone could please give me any leads to this issue. Thank you!

  23. Famous Onyemah says

    I am still struggling to come to terms with WP.
    Please if I want my readers to …Read More » on a page, what widget do I use?

  24. Opirite says

    Thank you, i tried many things on how to fix the problem but none worked until i tried your solution by changing the file permission as shown. Your solution to the problem worked for me. Again, a big thank you.

  25. Michiel says

    Hi all,

    Thanks for all your information and suggestions.
    I tried everything:
    – the 755,744,744 and 655 in filezilla. Nothing worked.
    – Media, upload etc. Also nothing.

    All of a sudden I could upload two images. And afterwards I tried the upload a 3rd image and now I am stuck with the same problem again. Every time I try to upload any image i get ‘ http-error’.

    Does anybody have some last advice?
    Help a no-knowledge-of-websitebuilding-person out!

    Thanks in advance! :)

  26. Anais says

    I have an issue that doesn’t seem to be addressed anywhere – there is no « Media » folder in my WordPress menu and I just can not figure out why and how to access it.

    I am just starting my blog and not even uploaded my theme yet. Any idea what could be the reason behind that?

    Thank you!

Répondre à Melina Annuler la réponse

Merci d'avoir choisi de laisser un commentaire. Veuillez garder à l'esprit que tous les commentaires sont modérés selon notre politique de commentaires, et votre adresse e-mail ne sera PAS publiée. Veuillez NE PAS utiliser de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.