最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

media library - uploading files to the uploads folder via ftp

programmeradmin1浏览0评论

What is the reason/s that the WordPress Media Folder, doesn't display images that were uploaded via FTP, directly to the uploads folder? Why doesn't WordPress "see" them? why do we always have to upload via the WordPress media uploader? What does it do?

What is the reason/s that the WordPress Media Folder, doesn't display images that were uploaded via FTP, directly to the uploads folder? Why doesn't WordPress "see" them? why do we always have to upload via the WordPress media uploader? What does it do?

Share Improve this question edited Jun 10, 2016 at 12:51 Dmitry Mayorov 3511 silver badge10 bronze badges asked Jun 10, 2016 at 10:58 taltal 411 silver badge5 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 2

Because WordPress is not scanning all the folders all the time. When you upload images Wordpress also makes an entry in the database, records the caption, the sizes that are available and so on.

There is a plugin Add From Server that allows you to select files from the "uploads" folder and import them in the Media Library.

When you upload a file using the default WordPress media uploader, it saves the file information inside the database. So, when you see them in Media, it means they exist and are registered in the database.

When you use other method to upload the image, like FTP, the database isn't automatically populated and, therefore, WordPress won't recognize their existence.

Media from Ftp and Add from server

Also works. But if the images are more than 25k-1lakh then these plugins wont help you. If anybody knows update here thanks.

发布评论

评论列表(0)

  1. 暂无评论