6

In my wordpress, I tried to upload my images by media uploader but it says "couldn't create directory wp-content/uploads/2016/09". Then I create the folders correctly. And now when I tried to upload my files by media uploader, it says "couldn't move to directory wp-content/uploads/2016/09". Finally I uploaded my images in the folder and then checked the media library and the media library saying "no media founds".

Why is it happening?

  • This could possibly be folder permission issue. Please check this to confirm. – Prasad Nevase Sep 25 '16 at 10:08
  • In other words, to show up in the Media Library, files must be BOTH physically on the server AND also registered in the database. If either requirements art missing, they wont show up. If you cant upload images from the backend, it's most likely a permission issue. Try to set the 2016 folder to 777 and try again. If it works then ask your hosting for support on the issue, or use a plugin that help with SFPT/FTP connections to the server. – The J Sep 26 '16 at 3:47
5

Just by uploading files into the wp-content/uploads won't show up in the Media Library , those media ID's needs to be there in the database to show up in the Media Library.

If you already have files in the uploads folder and want to add them into the database, you can use this plugin to add files from server.

But this is not the correct solution instead fix the permissions issue for that uploads folder.

-1

Media files exist in upload folder but not showing up
Simply Paste this code in wpconfig.php and save it all is done :) but exactly where to paste?

define( 'UPLOADS', 'wp-content/'.'uploads' );

protected by Community Jun 9 '18 at 8:29

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.