如何在(之前)上传期间压缩 100 mb 文件以提高上传速度? [英] How to zip 100 mb files during (before) upload so that upload speed can be increased?

查看:30
本文介绍了如何在(之前)上传期间压缩 100 mb 文件以提高上传速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
HTML 压缩文件上传?

我从客户那里抱怨说我的网站需要更多时间来上传 100 MB 的时间(我知道由于这个大小,它肯定需要更多时间),因此我计划上传文件,以便在上传之前将它们压缩并被上传到所需的位置,然后解压缩并删除该压缩格式的上传文件.

I have complains from client that my website is taking more time to upload the 100 MB time (I know it bound to take more time because of this size), hence I am planning to upload files such that they get zipped before upload and gets uploaded to desired location and then gets unzipped along with the deletion of that zipped format uploaded file.

那么有人可以建议我如何进一步进行吗?

So can anyone suggest me how to proceed further?

我使用的是 PHP,没有笨拙的上传文件代码,它只是一个具有常规文件上传功能的表单......

I am using PHP, there is no clumsy code for uploading file its just a form with usual file upload functionalty...

编辑我如何在 PHP 中为此目的集成 Silverlight?

EDIT How could I Integrate Silverlight for this purpose in PHP?

请帮忙

推荐答案

没有办法像这样使用纯 html 表单和 PHP 脚本来操作文件.原因之一是浏览器的沙箱无法访问客户端的文件系统.

There's no way to manipulate the file like this with a plain html form and PHP script. For one reason, with the browser's sandbox, there's no access to the client's filesystem.

您可能想要探索 Java Applet、Silverlight、Flash 类型的解决方案,在客户端上可以允许访问文件的更丰富的东西.

You would probably want to explore a Java Applet, Silverlight, Flash type solution, something richer on the client that can be allowed access to the file.

这是一个使用 Silverlight 的示例

这篇关于如何在(之前)上传期间压缩 100 mb 文件以提高上传速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆