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


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 – user3332076 Apr 7 '15 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 Apr 7 '15 at 8:50
  • Can you tell me some other method to implement the above usecase – user3332076 Apr 8 '15 at 4:31

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.