Asp.net文件上传传输率
有什么方法可以轻松了解 un filupload 上传期间服务器/客户端之间的传输速率吗?因为上传一个 4,13Mb 的文件大约需要 5 或 6 分钟……我们是否可以通过将其写入平面文件、电子邮件、响应中来跟踪它。写任何东西!我们被困住了。
感谢您帮助我们:(!
Is there any way to easly know Transferrate between server/client during un filupload upload? Because uploading a file of 4,13Mb take about 5 or 6 minutes.... Is there anyway we can track it, by writing it in flatfile, email, response.write anything!! We're stuck.
Thanks to help us :(!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用内置的 asp:FileUpload 控件,则不会。一些基于 AJAX 的第三方上传控件可能会执行此操作,但我不知道有什么。
Not if you're using the built-in asp:FileUpload control. Some third party AJAX-based upload controls probably do this, but I don't know of any offhand.
不容易。
HTTP 的工作方式如下:您发送所有数据,然后服务器开始处理您的请求。
但是您可以编写一些客户端代码(flash、applet、silverlight),将文件分成几部分并将它们一次一个地发送到服务器。这样您就可以计算您的传输速率。
Not easily.
HTTP works this way: you send ALL data and, after that, server begins to process your request.
But you can write some client code (flash, applet, silverlight) which break a file in pieces and send them, one at time, to server. This way you can compute your transfer rate.
使用SWFUpload这样的Flash上传工具,可以检测上传速度,然后发送总时间/速度文件完成后发送到服务器。
Use a flash upload tool like SWFUpload, by which you can detect the upload speed, and then send the total time/speed to the server once the file is done.