Troubleshoot a Media Upload Error in WordPress

The WordPress Dashboard may give several errors while trying to upload files, and several causes of this error. Here are some details to fix the error while uploading image 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 setting isn’t an issue, then move to the next step to confirm WordPress you are trying to upload:

  • Log 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
    • AbsoluteHostingPath is the absolute path for your hosting account. (cPanel / Plesk)
    • Subfolder is only necessary if you have installed WordPress to a subfolder.
  • 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, then move to the next step is to determine if one of your plugins is causing the problem.

  • Log in to WordPress.
  • Deactivate all of your plugins.
  • Try 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.