dongzhizhai4070 2014-01-22 21:14 采纳率: 0%
浏览 43
已采纳

没有临时文件夹(无法上传文件)

I run PHP though IIS 7.5 and made the php installation from http://windows.php.net/download/ 5.3 msi installer

To date everything has run very fine,

but for some reason when i submit a file with an html form, In the php script that should save the file i get this the error 6 witch mean that there is no tmp_folder.

This is the output of print_r($_FILES);

Array
(
    [test1] => Array
    (
        [name] => Book1.csv
        [type] => 
        [tmp_name] => 
        [error] => 6
        [size] => 0
    )
)

Now when i look in php.ini

I correctly have this

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
upload_tmp_dir = "C:\phpDevelopment\tmpFolder"

I don't know what to do to make this to work correctly.

I Googled this problem and i can't find any thing.

Any idea some one ?

Thanks for any help I could have.

Edit --------------------------------------------

Also yes the tmp folder at is there and should have the right to be able to write in.

I setted right to everyone just to make sure i have enough right. We see here that right are set to everyone

  • 写回答

1条回答 默认 最新

  • dongzhuoxie1244 2014-01-23 13:38
    关注

    Try commenting out upload_tmp_dir in your php.ini by putting a ; in front of it so that it uses the default Windows Temp folder by default: C:\Windows\Temp

    Also make sure your Application Pool Identity or group of Identity users has write permission to the temp folder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能