为什么 iframe 上传这么慢?
服务器端或客户端是否有原因导致通过 iframe 方法上传即使是很小的文件也会花费这么长时间?
我只是想通过 iframe 上传文件,这样用户就不必离开页面。这一切都有效,但速度非常慢。奇怪的是,无数次,它实际上会很快完成。我不确定发生了什么事。
浏览器是火狐3.6。服务器是 CentOS 4,带有 HTTPd 2.0。
Is there a reason server-side or client-side why uploading even a tiny file via the iframe method can take such a long time?
I'm just trying to upload a file via an iframe so the user doesn't have to leave the page. It all works but it's incredibly slow. Oddly enough, one time in umpteen, it will actually go through quickly. I'm not sure what's going on.
Browser is Firefox 3.6. Server is CentOS 4 with HTTPd 2.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
糟糕的是,我从其他地方获得的代码是使用相同的表单提交的,在这种情况下,该表单非常大。它使浏览器编译所有内容以供上传。服务器端进程也必须反编译所有这些内容。综合起来,我想这就是它缓慢的原因。
My bad, turns out the code I got from elsewhere was submitting using the same form which in this case was very large. It made the browser compile everything for submission just for the upoad. And the server-side process had to decompile all of that on its end, too. Combined, I guess that's why it was slow.