我想在使用javascript将目录上传到服务器之前压缩用户选择的目录。 [英] I want to zip the directory selected by user before uploading the directory on to the server using javascript.

查看:58
本文介绍了我想在使用javascript将目录上传到服务器之前压缩用户选择的目录。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序用户目前在上传文件时遇到问题。有时上传过程需要很长时间才能上传3-4个小时。目前,用户从其文件系统中选择一个目录,最大大小限制为20GB。在我们的应用程序中编码时,目录中的所有文件都会被添加,然后在按钮点击时上传到我们的服务器。这是使用resumableJS实现的。现在,我计划在用户选择目录之前在客户端压缩文件,然后再将其上传到服务器。无论如何我能实现吗?或者这个问题的任何其他可行解决方案?请建议。



我尝试过:



尚未尝试对解决方案感到困惑。请建议

解决方案

LMGTFY [ ^

Our application users are currently facing issue while uploading files. Sometimes Upload process takes too long to upload like 3-4 hours. Currently user selects a directory from his file system with maximum size limit of 20GB. As coded in our application, all the files in the directory gets added and then uploaded to our server on button click.This is implemented using resumableJS. Now, I'm planning to zip the files on client side after the directory is selected by user, before it gets uploaded to server. Is there anyway I can achieve it? Or any other viable solution to this problem?Please suggest.

What I have tried:

Not yet tried as confused about solution.Please suggest

解决方案

LMGTFY[^]


这篇关于我想在使用javascript将目录上传到服务器之前压缩用户选择的目录。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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