+ Start a Discussion
Shailender GuptaShailender Gupta 

How to Upload multiple Attachment through apex?

Best Answer chosen by Shailender Gupta
Alex TennantAlex Tennant
You can do this by using multiple apex:inputFile components on your page or by using an HTML input tag with multiple = true, then looping over the uploaded files in Javascipt and uploading them using the Ajax toolkit.

All Answers

Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
Hi Shailender,

Please refer http://forceguru.blogspot.com/2012/12/uploading-multiple-attachments-into.html for multi attachment upload.


Thanks,
N.J
Alex TennantAlex Tennant
You can do this by using multiple apex:inputFile components on your page or by using an HTML input tag with multiple = true, then looping over the uploaded files in Javascipt and uploading them using the Ajax toolkit.
This was selected as the best answer