Can anyone tell me how to upload a zip file in visualforce page?
My use case is:
I have to upload a zip file which contains 10 pdf files and assign these 10 files to 10 contacts
For that how can I do?
Thanks in advance
Karthick
1 Answer
APEX has no buildin zip- and unzip support so uploading the zip as a single attachment will give you a hard time to proceed.
But in Visualforce you can utilize a really great JavaScript tool called jszip http://stuk.github.io/jszip/
Using it you can unzip client side and upload the files at the right place.
There is an article with more details:
-
-
-
2No I can't provide you code. But if you read to the article you'll have all information you need to write it.– Uwe HeimCommented Sep 19, 2014 at 9:57
-
I cant understand from the article you provided..Thats y am asking the code Commented Sep 20, 2014 at 7:26