2021

Salesforce

Downloadable Attachment Link in Salesforce using Visualforce

Sample code:Visualforce Page:<apex:page standardController="Account" extensions="FileUploadController">    <apex:form enctype="multipart/form-data">        <table>            <apex:repeat value="{!listAttachments}" var="att">                <apex:outputLink target="_self" value="/servlet/servlet.FileDownload?file={!att.Id}">{!att.Name}</apex:outputLink>  ....