【问题标题】:Uploading video files to IIS 7 through php fails通过 php 将视频文件上传到 IIS 7 失败
【发布时间】:2011-12-18 20:35:20
【问题描述】:

我正在尝试让我的网站上传视频和图片。由于我创建了更多上传图片的网站,这方面没有问题,但是当我尝试上传视频时,由于某种原因,在包含已上传图片的 $_FILES 数组中找不到它。

我已经用谷歌搜索并找到了有关 php.ini 文件和 IIS 7 的内容,其中包含上传的最大大小。这些都设置为1024M:

在 php.ini 中:

max_execution_time = 1000
max_input_time = 1000
memory_limit = 256M
upload_max_filesize = 1024M
post_max_size = 1024M

在 IIS 7 中:

maxAllowedContentLength = 1073741824
maxRequestLength = 1073741824

经过一些测试,看起来非常小的视频文件确实可以工作 (192KB),但稍大一点的视频文件在 $_FILES 数组 (11MB) 中没有显示任何内容,但非常大的文件 (80MB) 会出现错误:The request filtering module is configured to deny a request that exceeds the request content length.。问题是我已将maxAllowedContentLength 设置为1GB。所以这不应该发生?!如下图:

Image

非常感谢任何帮助或建议!

【问题讨论】:

    标签: php video file-upload iis-7


    【解决方案1】:

    ServerFault 上给出了答案:ServerFault - Uploading video files to IIS 7 through php fails。如果您遇到同样的问题,希望这对您有所帮助。

    【讨论】:

      猜你喜欢
      • 2015-12-12
      • 2012-07-24
      • 1970-01-01
      • 2015-10-12
      • 2011-11-12
      • 2012-07-11
      • 1970-01-01
      • 2017-10-18
      • 2020-07-29
      相关资源
      最近更新 更多