简体   繁体   English

WordPress的不存储上传的文件

[英]Wordpress not storing uploaded files

this is really weird. 这真的很奇怪。 I am uploading files through the admin interface within Wordpress 3.0. 我正在通过Wordpress 3.0中的管理界面上传文件。

Wordpress recognizes the file type and attributes, but does not store it within wp-content/uploads successfully. Wordpress可以识别文件类型和属性,但不会将其成功存储在wp-content / uploads中。

Upon upload I am given a url that points to a file within wp-content/uploads, that does not exist. 上传后,我会得到一个指向wp-content / uploads中不存在的文件的URL。


Are there any common gotchas? 有什么共同的陷阱吗? I have no clue what this could be caused by :| 我不知道这可能是由 :| 引起的

Thanks in advance, help would be wonderful. 在此先感谢您,我们将为您提供帮助。

Ensure your uploads folder writable by PHP and does it exist? 确保您的上载文件夹可被PHP写入并且是否存在? Although WordPress should indicate this, it is a common thing. 尽管WordPress应该指出这一点,但这是很平常的事情。

UPDATE 更新

If the above does work, try setting WP_DEBUG to true in your wp_config.php and see if there are any errors. 如果上述方法确实有效,请尝试在wp_config.php中将WP_DEBUG设置为true ,看看是否有任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM