Unable to Create Directory Error image

Media Uploader handles the image uploads in WordPress. You can add an image to media directory in WordPress using Add New button under Media Section. Sometimes While uploading any media file, this Unable to Create Directory for Media Uploads Error will arise. To resolve this Image Upload Error, here we have provided the easy ways for you. Read the article and fix Error Unable to Create Directory in WordPress for Media Uploads.

How to Resolve Unable to Create Directory for Media Uploads?

Browsing the internet to fix this image upload error will waste your time. Don’t waste your valuable time. In this article, we have shown how to Fix Unable to Create Directory for Media Uploads in WordPress. Take a look at it and learn Resolving steps for Unable Create Directory Error in WordPress.

Unable to Create Directory for Media Uploads image

Check File Permission on Upload Folder

For fixing Unable to Create Directory, you have to check the file permissions on Upload Folder. If there are any incorrect file permissions, then you have to change it. The step by step process for checking and changing file permissions are provided here. Follow the process and resolve WordPress image upload Error.

Check and Change permissions through FTP

  • Access your WordPress root folder through FTP.
  • Next, click on the wp-content folder.
  • Select file permissions option from that folder.

wp content filepermissions image

  • A new window appears on the screen.

FTP wpcontent filepermissions image

  • Check the permission are 755 or not. If it is not 755, then enter 755 in the Numeric value field.
  • Now, put a check on the box of Recurse into subdirectories.
  • Next, click on the Apply to directories only.
  • Click on the OK button. Now, the directories file permissions are changed.
  • Next, you have to change permissions of files. So, again click on the wp-content folder and select file permissions option.

wp content filepermissions image

  • Permissions window appears on the screen.
  • Now, check the value of file permissions is it 644 or not. If the file permissions are not 644, then enter 644 in the Numeric value field.
  • Put a check at the box of Recurse into subdirectories.
  • Next, click on Apply to files only
  • Finally, click on the OK Button.
  • Now, Login to your WordPress admin.
  • Try to upload any image file, the image can upload without any WordPress Error.

Change permissions using cPanel

  • Login to your cPanel.

cpanel-login-image

  • Click on the file manager.
  • Navigate to public_html/wp-content folder.
  • Search for uploads file.
  • Right click on the uploads file.
  • Select permissions option.
  • Check the file permissions are 755 or not. If it is not 755 then change them to 755.

cPanel file permissions image

  • Click on the change permissions button.
  • Now, the file permissions are changed. Once login to your WordPress admin area and try to upload a media file to your WordPress site. The image can upload without any Unable to Create Directory for Media Uploads Error in WordPress.

Click here to resolve Upload: Failed to Write File to Disk Error

Check and Change Upload File Path

After changing the file permissions still, you got Unable to Create Directory for Media Uploads Error means you have recently changed your server. While changing the server, there is a conflict with your old path and new file path. So, you have to edit your file path. By editing the path, you can resolve Media upload error.

Change File Path using WordPress Dashboard

  • Click on Media option under Settings Section.
  • Now, you can see change the file path option.
  • Change the old file path to your new file path.
  • Click on Save changes button.
  • Now, try to upload an image file to your WordPress. The image file can upload without any WordPress Error.

If you don’t see the change the file path option, then you have to change path through FTP access.

Change File Path through FTP Access

  • Access your WordPress root folder through FTP.
  • Next, go to wp-config file.
  • Search for the given line of code.
require_once(ABSPATH.'wp-settings.php');
  • Next, add the given code above that line code.
define('UPLOADS', 'wp-content/myimages');
  • Now, save the changes and try to upload media file. The image can upload without any Unable to Create Directory Error.

Change File Path using cPanel Access

  • Login to your cPanel account.
  • Navigate to wp-config file.
  • Search for the given line of code.
require_once(ABSPATH.'wp-settings.php');
  • Add the given code above that line code.
define('UPLOADS', 'wp-content/myimages');
  • Now, save the changes. The Unable to Create Directory for Media Uploads Error is resolved and the image is successfully uploaded.

Download Responsive WordPress Themes for Education Websites

Conclusion:

Hope this article is useful for you to resolve Unable to Create Directory Error in WordPress. Again if you get any WordPress Problem, just visit our site and resolve your error easily. You can also refer our website for getting the Best Guidance on WordPress.

LEAVE A REPLY