An error occurred in the upload.Please try again later.

Today, we found an issue related to image upload on the WordPress website. When we tried uploading any image through the media manager, it showed the error “An error occurred in the upload. Please try again later.” After a few attempts, we were able to resolve this issue.

Actually, there could be a few reasons for this error so you will have to attempt it a couple of times. Below are some of the probable solutions to this problem.

image-upload-error-wordpress

#1 Check Permissions

You may like to check the permissions of the ‘upload’ folder first and make sure that it has been set to 755. In our case, it was fine however at times the permissions of the ‘upload’ folder may change due to some unexpected changes in the server.

#2 Culprit Plugins

You should check the recently installed plugins on your WordPress website because one or more of these plugins may cause this issue. In our case, we found the error lay in one of the plugins which we had recently installed for image optimization. After deactivating the culprit plugin, we were able to upload the image without any problem.

#3 Check for max upload size

If you have been trying to upload an image or audio/video of more than 2MB and facing the error message “An error occurred in the upload. Please try again later.”, then you must consider increasing the file upload size through .htaccess, theme functions file or php.ini.You can read more on increasing the file upload size in this blog.