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

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:

|improve this answer|||||
  • Hey @Uwe Heim, can you give me the sample code – user3332076 Sep 19 '14 at 8:46
  • Hy @Uwe Heim I need source code for this scenario – user3332076 Sep 19 '14 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 Sep 19 '14 at 9:57
  • I cant understand from the article you provided..Thats y am asking the code – user3332076 Sep 20 '14 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.