function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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