Use the following sample code to upload a new attachements to Account object record. You can either keep this vf page as inline VF in Account object (or) directly run the page with Id mentioned like https://c.na15.visual.force.com/apex/MultipleFilesUpload?id=001XXXXXXXXXXXXX (/). You can choose how many number of attachment you would like to add to particular record usign this code.
Will this solution work in Salesforce communities (partner portal)? I'm looking for the best way to allow partner portal users to upload multiple files at once. The usual App Exchange and other 3rd party solutions do not seem to be supported by portals.
Use the following sample code to upload a new attachements to Account object record. You can either keep this vf page as inline VF in Account object (or) directly run the page with Id mentioned like https://c.na15.visual.force.com/apex/MultipleFilesUpload?id=001XXXXXXXXXXXXX (/). You can choose how many number of attachment you would like to add to particular record usign this code.
VF page
Controller
Hope this helps you. Please select this as a Best answer to give kudos, if it suits your requirment so others can make use of it...!
Regards,
Kamatchi Devi R
Salesforce Certified Developer | Salesforce Certified Administrator | Service Cloud Consultant
Will this solution work in Salesforce communities (partner portal)? I'm looking for the best way to allow partner portal users to upload multiple files at once. The usual App Exchange and other 3rd party solutions do not seem to be supported by portals.
Thanks very much.