留言板

Ability to generate .zip files on client side

thumbnail
Muniraj saravanan,修改在8 年前。

Ability to generate .zip files on client side

Junior Member 帖子: 95 加入日期: 11-6-1 最近的帖子
Hi,

Please share , if anyone did generation of .zip files on the client side using and javascript library . I tried JSZip (https://stuk.github.io/jszip/)utility , but does not work in liferay

thanks
thumbnail
Olaf Kock,修改在8 年前。

RE: Ability to generate .zip files on client side

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
I've never heard of client-side zipfile generation in the context of web applications, i.e. running in the browser. You can certainly (and obviously) run it on a JS shellscript. I'd say: Use Multi-File uploads (e.g. upload many files to the server), utilize gzip on transit for compression and create a zip file on the server. That's as close as it gets.

I'd love to be corrected though
thumbnail
Muniraj saravanan,修改在8 年前。

RE: Ability to generate .zip files on client side

Junior Member 帖子: 95 加入日期: 11-6-1 最近的帖子
To Explain more , I have requirements , if there a event say a board meeting and it is build as web content ,which displays say file1 ,file2 .

1) users able to click the individual file, the particular file gets download -- this will works by uploading a file in document library and put the link in the WC
2) There should be a common link down the page , if user clicks that, all the files should be download as single .zip file.


JSZip (http://stuk.github.io/jszip//) works some extent , Right now i found IE is not supporting it

thanks
thumbnail
David H Nebinger,修改在8 年前。

RE: Ability to generate .zip files on client side

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
What an <strong adjective indicating really bad> concept.

You're going to stream everything uncompressed from the server so you can zip it in the browser. What <offensive adjective+noun representing a truly clueless person> came up with this idea?
thumbnail
David H Nebinger,修改在8 年前。

RE: Ability to generate .zip files on client side

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
David H Nebinger:
What an <strong adjective indicating really bad> concept.

You're going to stream everything uncompressed from the server so you can zip it in the browser. What <offensive adjective+noun representing a truly clueless person> came up with this idea?


Okay, apparently the unedited version of this reply ruffled some feathers. If I offended, then I apologize for that.

However, if I left you believing this was a truly bad idea, one that should never be considered and was really ridiculous and representative of the worst possible idea that you could implement on the net, well that was my only intent.

As everyone on the forum here knows, I aim to help everyone and strive to promote the community. This idea, however, was so beyond the pale in regards to how utterly bad it was that I just couldn't control myself.

Hopefully the edited response will leave you with the same impression (that it is a truly bad idea) without offending at the same time.
thumbnail
Jack Bakker,修改在8 年前。

RE: Ability to generate .zip files on client side

Liferay Master 帖子: 978 加入日期: 10-1-3 最近的帖子
collecting file together, compressing server side for delivery to browser is attractive

I lost the root thread need on this somewhere...