You need to sign in to do that
Don't have an account?
How to show attachment name when download PDF attachment file from site
Dear Friends,
I designed a web lead application using visualforce and placed the link using sites concept in my website. When lead submits the lead form the page redirect to download page there he can down load the file from SFDC. The file is in pdf format when he click the link it open in the browser and when he try to save the file in his local disk the file name shows “servlet.pdf”.
Is there any way to show file name when he save the file from salesforce or is there any way to save the file when he click the link in the page.
I write the below code to download the attachment.
<apex:outputlink value="{!URLFOR($Action.Attachment.Download, attachment.id)}" target="_Blank" id="theLink" >
Thanks,
Bhaskar
As far as I know, this is not possible. Please vote up this idea on the idea exchange.