1

I am trying to download attachment from link :

<a href="{!'/servlet/servlet.FileDownload?file='+attachment.Id}" target="_blank">{!attachment.name}</a>

but the attachment is being downloaded as type "file". I have tried to append Content Type with file name while saving the file but it doesn't seem to be working. Any suggestions would be appreciated. p.s - a question is already asked on similar topic (click here) but answers were not helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.