You need to sign in to do that
Don't have an account?
Salvatore Mignogna
Download a PDF not showing the servlet link
Hi,
I need to provide the secure download of a pdf stored on salsforce platform as attachment whithout showing the direct link to the resource (i.e. /servlet/servlet.FileDownload?file=........).
Assuming that a user has the right to access the pdf, is there a way to download the resource without provide the direct link?
As per my knowledge it is not possible. Workaround may be to send the logged in user an email with the attachment. To add some flexibility you may prompt the user to provide preferred email id in your page.
https://github.com/eligrey/FileSaver.js/raw/master/FileSaver.js
Thanks a lot,
I'll try to extend the solution for other mime types. I need to download pdf files.