How to compress a file (such as pdf) in client side before upload using jquery?
I don't get any best idea or answer about this question from previous solutions.
CodePudding user response:
This library can probably help https://stuk.github.io/jszip/documentation/examples.html
CodePudding user response:
Maybe you can use gzip-js
The main goal of this project is to bring GZIP compression to the browser.
But if you use this, you also should decompress gzipped file on server-side.