如何将 SWF 中的文件上传超时设置为大于 3 分钟?
我正在使用 SWFUpload 处理文件上传,但遇到了任何文件上传 >= 3 分钟都会超时的问题。 据我所知,Apache 和 PHP 已正确配置以处理大文件。 Flash 是否有任何设置可能会影响此问题? Flash 是否有某种我可以更改的超时值?
I'm using SWFUpload to handle file uploads and have run into a problem where any file upload >= 3 min will time out. As far as I can tell, Apache and PHP are configured properly to handle large files. Are there any settings with Flash that might affect this? Does Flash have some sort of timeout value I could change?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 PHP 脚本超时,则可以通过调用 set_time_limit(int secondary) 来调整 php time_limit。 如果将其设置为 -1,则脚本将无限期执行(如果这是您想要/需要的)。
如果 Flash 超时,您可能需要查看以下内容:
http://www.aflax.org/forums/topic。 php?id=38
< a href="http://www.kirupa.com/forum/archive/index.php/t-262299.html" rel="nofollow noreferrer">http://www.kirupa.com/forum/archive/index .php/t-262299.html
If the PHP script is timing out, then you can adjust the php time_limit by calling set_time_limit(int seconds). If you set it equal to -1 then the script will execute indefinitely, if that's what you want / need.
If the Flash is timing out, you might want to take a look at the following:
http://www.aflax.org/forums/topic.php?id=38
http://www.kirupa.com/forum/archive/index.php/t-262299.html