jquery - How to parse a .zip file in Javascript before uploading to server -


i have situation user may have upload multiple text files, saved on file system. instead of asking user repeat same act multiple times want give them option upload zip file files saved in particular format.

there 2 ways it.

  1. ask them upload zip file. unzip file @ server , save independent files. if whole thing in memory there risk of using memory, logical thing save zip file on filesystem. since deployed on amazon, involve saving on s3 further increase latency ec2 s3 , don't want headache of tracking zip file well.

  2. other option unzip file on client side , individually upload files, way don't need keep track of zip file. unable understand how can unzip file on client side , iterate through multiple files/folders in it.

if there easier/less messier way of doing first approach, open well. backend in django.

would sincerely appreciate help.

why don't let them select multiple files @ once? i found example online. can combine drag & drop. think dragging multiple files form, more comfortable uploading zip file. check article read more javascript file api.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -