Troubleshoot a media upload error in WordPress
The WordPress Dashboard can give several errors when trying to upload media files, and there are multiple possible causes of these errors. You may need to try a few fixes before you can upload images and media again.
- Confirm your file does not exceed the maximum upload limit for your shared hosting plan.
- If so, you will need to reduce the size of the file before uploading it again.
- If not, but the file size exceeds the default PHP limit, then you can increase it.
- If the issue persists, then increase your php memory limit to 256M.
If your php settings are not the issue, then the next step is to confirm WordPress is trying to upload media to the proper folder and that folder has the correct permissions.
- Sign in to WordPress.
- On the left navigation bar, click Settings.
- Under Settings, click Media.
- Confirm the path in the "Store uploads in this folder" area is correct for your WordPress site. For example:
/AbsoluteHostingPath/SubFolder/wp-content/uploads
- Confirm the /SubFolder/wp-content/uploads folders all have "Write" permissions. (
cPanel / Plesk )Note: On cPanel Hosting only the User group should have Write permissions.
If you are still unable to upload media through the WordPress Dashboard, the next step is to determine if one of your plugins is causing the problem.
- Sign in to WordPress.
- Deactivate all of your plugins.
- Trying uploading your media file again.
- If you can successfully upload a file, then activate your plugins one at a time until you find the one causing the issue.
More Info:
- Return to Troubleshoot and fix a media upload error in WordPress.
- For more information about our premium support for WordPress, please visit our WordPress Premium Support Catalog.