Can anyone tell me how to download the multiple files via apex?
I have a visualforce page which contains download button. Once I click this button then it will download all the files in my attachement object.
For that how can i implement.

Thanks in advance

1 Answer 1


You can create page with links to your attachments or add multiple attachments in zip archive.

  • can you give me the sample code for how to add multiple attachments in zip Commented Apr 7, 2015 at 8:23
  • The easiest way in this case is create zip on client side. Following link can be useful valnavjo.com/blog/compressing-files-in-salesforce
    – Gres
    Commented Apr 7, 2015 at 8:50
  • Can you tell me some other method to implement the above usecase Commented Apr 8, 2015 at 4:31

You must log in to answer this question.

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