I am trying to zip the file before uploading with plupload
Plupload.bind('FilesAdded', (up, files) => {
// 1. Check file
// 2. Access file content here (Need input how we can access it? or pass file object to JS zip)
// 3. Zip the file using // using JS Zip may be, this need blob, or array or content
// 4. Add Zipped content in queue, with new file name and remove current file from the queue.
}
I am looking for help regarding point number 2 and 3. Where in I need to extract file content and pass blob or file object to JS Zip so it can zip it correctly.
Thanks for help.