如果我选择一个大文件(大约700 MB),它将开始上传,然后一段时间后进度条从零开始重新启动并在开始时恢复上传。在17分钟之后,从头开始再次上传。 为什么?谢谢你的帮助。
以下是我的参数:
上传设置:
-self.uploadify ({
".swf": "Uploadify.swf '
"Upload": "upload.php '
'FormData': {'action', 'upload', 'path': self.attr ('path')}
'QueueID': customQueueId,
"FileTypeExts ':' * *."
"FileTypeDesc": "All Files"
'ButtonImg': buttonImg,
"Main" 'ButtonCursor'
'ButtonText': '',
'ScriptAccess': "always",
"Method", "post"
'Width': bwidth,
"Height": bheight,
'FileSizeLimit' :"50000MB",
'QueueSizeLimit': 100,
'Auto' (self.attr ("auto") == "false" false: true)
"Multi" (self.attr ("multi") == "true" true: false)
'PreventCaching': false,
'RemoveCompleted': true,
"Debug": true,
'OnFallback': function () {
alert ("not flash installed in your browser.");
},
php.ini中:
max_execution_time = 300000
max_input_time = 600000
memory_limit = 128M
On file_uploads =on
upload_max_filesize = 5G
max_file_uploads = 100
设置IIS:
<? xml version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System.webServer>
<HttpErrors ErrorMode = "detailed" />
<Security>
<RequestFiltering>
<RequestLimits maxAllowedContentLength = "4000000000" />
</ RequestFiltering>
</ Security>
</system.webServer>
<System.web>
<HttpRuntime executionTimeout = "172806600" />
</system.web>
</ Configuration>