There are upcoming maintenance events which may impact our services. Learn more

I am unable to upload files or images in WordPress Print

  • 2

Problem Description

You receive one of the following errors in WordPress:

  • Problem 1: The upload folder is not writable, Unable to create directory, Unable to create directory uploads/20xx/yy. Is its parent directory writable by the server?
  • Problem 2: The uploaded file exceeds the upload_max_filesize directive in php.ini" or "Input file not found"
  • Problem 3: The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task.

Problem Resolution

Solution for Problem 1: upload path issues

  1. Login to the WordPress admin
  2. Go to Settings > Media
  3. Under the Uploading Files section, look for the setting called "Store uploads in this folder" and remove the contents of the field. This will make it set to default.
  4. Save Changes

This will solve the problem.

If you're having trouble accessing the WordPress admin, you can use these steps to clear the upload_path value directly within the database:

  1. Login to Plesk
  2. Click 1-click web apps (or Installatron)
  3. Under the app you wish to adjust, click the filesize of the "Database" to open phpMyAdmin
  4. Click on the SQL tab
  5. Paste in the following, then click the "Go" button

DELETE FROM wp_options WHERE option_name LIKE 'upload_path'

Solution for Problem 2: file size issues

If you're uploading a large image or PDF within a reasonable limit like around 100MB or smaller, simply adjust your upload_max_filesize value within Plesk.

If that doesn't do the trick, you may need to adjust the post_max_filesize as well.

If you're uploading a larger file (> 100MB or so), even once these configuration values are changed it's difficult to say if a file of that size is going to upload fast enough before the standard web server process timeout is reached, at which point you'll run into an unchangeable limit.

If you're uploading a video file, you should know that most uploaded video files don't play across all devices; this is why most people upload the video to sites like Vimeo or YouTube, then embed the video on their site from there. Those services will convert the video to a variety of different formats and then load the one that plays best on whichever device is viewing the site/page. It is recommended to use one of those services for video uploads.

Otherwise, your best options is to upload the file using the Plesk file manager or FTP instead. Once in Plesk just choose "Files" and you'll find your website files under the httpdocs folder for your primary domain or whichever folder is showing in Plesk as the web root for add-on domains.

Solution for Problem 3: server resources error

Despite the error indicating it's a server resources issue, that's rarely the cause! The two reasons we've encountered for this error are as follows:

  1. The image you're uploading is corrupted and the tools used to compress the image and generate various sizes of the image in WordPress are failing to complete their processing because of the corruption. Try uploading a different file. If it works, then you can try resizing your image on your device before uploading it to see if that eliminates the corruption.
  2. The page in the WordPress admin (ex: the post editor) where you're uploading the file has timed out. This occurs if you have left it for too long since you started editing the page/post, then resumed editing hours or days later. Please log out of WordPress and log back in, then try your upload again to resolve the issue.

---


Was this answer helpful?

← Back