媒体文件存在于上载文件夹中,但没有显示
-
-
这可能是文件夹权限问题.请检查[this](https://codex.wordpress.org/Changing_File_Permissions)进行确认.This could possibly be folder permission issue. Please check [this](https://codex.wordpress.org/Changing_File_Permissions) to confirm.
- 1
- 2016-09-25
- Prasad Nevase
-
换句话说,要显示在媒体库中,文件必须既在物理上在服务器上,又必须在数据库中注册.如果缺少任何一项需求,它们将不会显示.如果您无法从后端上传图像,则很可能是权限问题.尝试将2016文件夹设置为777,然后重试.如果可行,请向您的主机咨询有关此问题的支持,或使用有助于与服务器建立SFPT/FTP连接的插件.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.
- 1
- 2016-09-26
- The J
-
3 个回答
- 投票数
-
- 2016-09-25
只需将文件上传到
wp-content/uploads
中,就不会在 Media Library 中显示这些媒体ID,它们需要在数据库中显示在媒体库中.如果上载文件夹中已经有文件,并且想要将它们添加到数据库中,则可以使用此插件以从服务器添加文件.
但这不是正确的解决方案,而是解决该上载文件夹的权限问题.
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.
-
- 2020-05-15
您可以将 Media Sync 用于2020年的新更新插件. 插件说明为
您可以扫描"上载"目录中的所有文件,并查看哪个 那些实际上在媒体库中,而哪些只是坐在 那里.然后,您可以选择要导入到数据库的那些 因此可以在媒体库中使用它们.
You can use Media Sync for new updated plugin for the year 2020. The plugin description reads
You can scan all files that are in “uploads” directory and see which ones are actually in Media Library and which ones are just sitting there. Then you can select those that you want to import to database and therefore make them available in Media Library.
-
- 2017-12-08
上载文件夹中存在媒体文件,但未显示
只需将此代码粘贴到wpconfig.php中,并保存所有操作即可:) 但到底要贴在哪里?define( 'UPLOADS', 'wp-content/'.'uploads' );
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' );
在我的wordpress中,我尝试通过媒体上传器上传图片,但显示"无法创建目录wp-content/uploads/2016/09".然后,我正确创建文件夹.现在,当我尝试通过媒体上传器上传文件时,它说"无法移至目录wp-content/uploads/2016/09".最后,我将图像上传到该文件夹中,然后检查了媒体库和媒体库,说"找不到媒体".
为什么会这样?