douluan5444 2011-12-17 13:43
浏览 73
已采纳

通过php上传视频文件到IIS 7失败

I'm trying to get my website to upload video's and pictures. As I have made more websites that upload pictures there is no problem on that front, but when i try to upload a video for some reason it can't be found in the $_FILES array that contains an uploaded image.

I have already googled and found stuff about the php.ini file and IIS 7 containing max sizes for uploads. these are all set to 1024M:

In php.ini:

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

In IIS 7:

maxAllowedContentLength = 1073741824
maxRequestLength = 1073741824

After some testing it appears that really small video files do work (192KB) but somewhat bigger doesnt show anyting in the $_FILES array (11MB) but really big files (80MB) gives an error: The request filtering module is configured to deny a request that exceeds the request content length.. The problem is that i have set the maxAllowedContentLength to 1GB. So that shouldn't happen?! An image of this is down below:

Image

enter image description here

Any help or advice is greatly appriciated!

  • 写回答

1条回答 默认 最新

  • doubishi8303 2011-12-18 12:35
    关注

    The answer was given on ServerFault: ServerFault - Uploading video files to IIS 7 through php fails. Hope this helps if you have this same problem.

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

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改