Avete problemi di caricamento delle immagini sul vostro sito web WordPress?
Per la maggior parte dei principianti, gli errori di caricamento delle immagini possono essere fonte di confusione perché possono comparire senza che si faccia nulla di diverso. In effetti, il mancato caricamento delle immagini è uno dei problemi più comuni in WordPress. Fortunatamente, è abbastanza facile da risolvere e potete farlo da soli.
In questo articolo vi mostreremo come risolvere il problema del caricamento delle immagini in WordPress.
Video tutorial
Se preferite le istruzioni scritte, continuate a leggere.
Cosa causa il problema di caricamento delle immagini in WordPress?
Il problema di caricamento delle immagini in WordPress è in genere causato da permessi di file errati. I file di WordPress sono memorizzati sul server di web hosting e necessitano di autorizzazioni specifiche per file e directory per funzionare.
Permessi di file errati impediscono a WordPress di leggere o caricare i file sul server di hosting. È possibile che venga visualizzato il seguente errore di WordPress quando si carica un file di immagine:
‘Impossibile creare la directory wp-content/uploads/2019/04. La sua directory madre è scrivibile dal server?”.
Oppure si potrebbe visualizzare l’errore:
Il file caricato non può essere spostato in wp-content/uploads/’.
Un altro segno di questo problema è la scomparsa delle immagini dalla libreria multimediale di WordPress.
Il mio sito funzionava bene prima. Chi ha cambiato i permessi dei file?
Questo può accadere per una serie di motivi. Una configurazione errata sul vostro server di hosting condiviso può talvolta modificare tali permessi senza che voi facciate nulla.
Ad esempio, il provider di web hosting ha eseguito un aggiornamento che ha modificato inaspettatamente i permessi dei file.
Se tutto il resto funziona bene sul vostro sito WordPress, potete semplicemente applicare i permessi di file corretti per risolvere il problema del caricamento delle immagini.
Detto questo, vediamo come impostare i permessi di file corretti per risolvere i problemi di caricamento delle immagini sul vostro sito WordPress.
Correzione del problema di caricamento delle immagini in WordPress
Per modificare i permessi dei file, è necessario utilizzare un client FTP.
Per prima cosa, collegatevi al vostro sito web tramite FTP e poi passate alla cartella /wp-content/. Al suo interno troverete la cartella uploads, in cui WordPress memorizza tutti i media caricati, comprese le immagini.
Ora fate clic con il tasto destro del mouse sulla directory uploads e selezionate “Autorizzazioni file”.
Verrà visualizzata la finestra di dialogo dei permessi dei file.
Per prima cosa, è necessario impostare i permessi dei file per la directory uploads e per tutte le sottodirectory al suo interno su ‘744’.
A tale scopo, inserire 744 nella casella del valore numerico e selezionare la casella accanto a “Ricorrezione nelle sottodirectory”. Ora fate clic sul pulsante di opzione “Applica solo alle directory“.
Fare clic sul pulsante “OK” per applicare le modifiche. A questo punto il client FTP inizierà ad applicare i permessi ai file delle directory.
Nota: se l’impostazione dei permessi di directory a 744 non risolve il problema, provare con 755.
Nella fase successiva, è necessario impostare i permessi per tutti i file della cartella uploads.
Per farlo, fare clic con il tasto destro del mouse sulla directory uploads e selezionare autorizzazioni file. Nella finestra di dialogo dei permessi dei file, modificare il valore numerico in ‘644’.
Selezionate la casella accanto a “Ricorri nelle sottodirectory”. Successivamente, è necessario fare clic sul pulsante di opzione “Applica solo ai file”.
Infine, è sufficiente fare clic sul pulsante “OK” per applicare le modifiche.
Il client FTP modificherà ora i permessi per tutti i file all’interno della cartella uploads. Una volta terminato, è possibile tornare all’area di amministrazione di WordPress e provare a caricare nuovamente le immagini.
Se sul vostro sito web sono presenti moduli per il caricamento di file, dovreste testare anche quelli.
Nota: se non sapete usare un client FTP, potete anche usare il file manager fornito dalla vostra società di hosting WordPress. Poiché le schermate variano da un host all’altro, dovrete rivolgervi al loro supporto per trovare le istruzioni.
Speriamo che questo articolo vi abbia aiutato a risolvere il problema del caricamento delle immagini in WordPress. Potreste anche leggere il nostro articolo su come scegliere il miglior hosting WordPress o il nostro confronto delle migliori alternative a GoDaddy.
Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e 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!
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.
Admin
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!
WPBeginner Support says
For that error, you may want to try the recommendations from our article below!
https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
Admin
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
WPBeginner Support says
It appears that your image is too large, for a starting point we would recommend taking a look at our article below:
https://www.wpbeginner.com/beginners-guide/speed-wordpress-save-images-optimized-web/
Admin
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!
WPBeginner Support says
Glad our guide was helpful!
Admin
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
You would want to go through the steps in this article if you have not done so and if these recommendations do not solve this issue, you would want to use our general troubleshooting article below:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Admin
António Antunes says
Hey,
Just change the permalink structure from generic to another one. That worked for me
ak says
Thanks! I didn’t thought about it, worked for me and saved a lot of time <3
Ankit Sharma says
image upload issue showing countinously .i have applied all methos but it does not working
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.
Admin
Daniel Gadd says
Thank You, 755 worked but 744 doesnt for folders, triple checked
WPBeginner Support says
It can vary depending on the issue and host, 744 is a backup to check
Admin
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?
WPBeginner Support says
You would likely want to reach out to your hosting provider for them to take a look.
Admin
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.
Admin
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.
Admin
Sravya says
Hi ,do we do it with out FTP
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.
Admin
Naluzze Anita says
I’m using localhost, cannot see the file permissions option when i right click
WPBeginner Support says
For local installations, you would right-click the folder and go under Properties>Security to change the permissions.
Admin
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
By default, WordPress would not include FTP’d files in the media library. It would depend on the specific error. If the default upload method is what is causing the error then you would want to go through the troubleshooting steps in our guide below:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Admin
Zillah Prescott says
You missed the easiest fix of all. Close WordPress and open it back up again.
WPBeginner Support says
For some, that may be a solution but that is sadly, rarely the solution for this specific issue.
Admin
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.
WPBeginner Support says
There are a few possible reasons for that error message, we would recommend going through our troubleshooting steps here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Admin
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!
WPBeginner Support says
You may want to ensure you cleared any caching for your site as that is the most common reason for that issue, we have a guide you can follow here:
https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/
Admin
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!
WPBeginner Support says
You’re welcome, glad our guides can be helpful
Admin
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
Admin
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.
WPBeginner Support says
Glad our recommendation could help
Admin
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.
Admin
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.
WPBeginner Support says
The most common other reason for not being able to upload an image would be fixed using the method in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-http-image-upload-error-in-wordpress/
Admin
Hamza says
publishing issue in wordpress.
no page, post is publishing in wordpress
WPBeginner Support says
It would depend on if you are receiving an error message or not. For starting out, you would want to take a look at our troubleshooting article here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Admin
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?
WPBeginner Support says
644 are the correct permissions
Admin
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.
Admin
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.
Admin
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.
Admin
Mike Wright says
Thanks a lot!
You continue to bring the clear and direct fixes
WPBeginner Support says
You’re welcome, glad our articles can help
Admin
The Struggling Believer says
Thank you very much! This solved my problem in my site
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!
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?
WPBeginner Support says
Hello,
The read more link appears next to excerpts (summary) of a blog post. For that you will need to set them up. See our beginner’s guide on how to set up excerpts in WordPress .
Admin
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.
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!
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!
wisd says
i can not upload a media file to my WordPress