4

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 1

2

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:

4
  • Hey @Uwe Heim, can you give me the sample code Commented Sep 19, 2014 at 8:46
  • Hy @Uwe Heim I need source code for this scenario Commented Sep 19, 2014 at 9:52
  • 2
    No I can't provide you code. But if you read to the article you'll have all information you need to write it.
    – Uwe Heim
    Commented 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .