You need to sign in to do that
Don't have an account?
Newbie10
Multiple file download apex
I have a requirement to download multiple files on a click of visual force button.
i know below will work if its a single file
<a href="/servlet/servlet.FileDownload?file={!fileId}">
any clue about how to gain this for multiple files
Hi,
Where are the files residing are they part of any object or related list? and what type of files they are?
Regards,
Ashish
they are chatter files.i have ids stored in custom object though
Hi,
You may also try this,
<a href="/servlet/servlet.FileDownload?file={!Document.Id}">Download file</a>
I think you can write a forloop for all the IDs in the custom object to download one by one as Salesforce does not recognise the files in one Folder they all are seperate entities.
Regards,
Ashish
But again that doesnt trigger downloading of many files on one click.Links exist as different
Have you got any sample code?
Hi ,
I do not have any sample code, but we can call a Classor controller which can get the links or Ids and process one by one in a For Loop.
Regards,
Ashish
Hi ,
See some related sample code in the links below,
http://salesforce.stackexchange.com/questions/13571/link-to-download-chatter-file-download-in-vf
http://boards.developerforce.com/t5/Visualforce-Development/How-to-provide-file-download-facility-in-visual-force-page/td-p/256645
http://boards.developerforce.com/t5/Visualforce-Development/XML-file-download-through-button-click/td-p/537221
Regards,
Ashish
Did you find Any Solution for your question
Thanks
Kartheek