生活在远方

是的,因为真正的生活是在远方

WordPress上传问题解决

Written By: tr - Apr• 27•07

将系统升级到Vista后,WP的上传功能一直没有解决。老是提示:Failed to upload之类的狗*信息。

今天一个偶然的机会,下载了PHPEd 5.0的试用版,在修改php.ini文件时偶然注意到这一行:

file_uploads = On
upload_tmp_dir =
upload_max_filesize = 20M

会不会是没有设置上传临时目录的原因?在Vista下用命令行观察系统缺省分配的临时目录,发现是类似

TEMP=C:Users****AppDataLocalTemp
TMP=C:Users****AppDataLocalTemp

这样的目录。于是将upload_tmp_dir设置为一个“任何用户”都有完全控制的目录,问题解决!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">