Allow user to download a PDF file on click of a button.

Anubhuti Mittal
Tera Contributor

I have a requirement to allow user to download a pdf file on click of a link.
I implemented this change using the sys_attachements table and referencing in the html as

<a href="sys_attachment.do?sys_id=17ca97ca1bbd8110775d7bff034bcb16" >

But the sys_attachments table is not accessible across board and some of the users are not able to access it?

Is there a way to pass system user credentials while accessing this file ?

if not , what will be the best approach to solve this ? 

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hi,

Where you are trying to add pdf.?

Regards,

Please hit like and mark my response as correct if that helps
Regards,
Musab

Subhankar Pram2
Tera Contributor

update the sys_attachment read acl

In case there is no acl create a new sys_attachment.none (READ) Acl

 

thanks for the response.

the sys_attachment table cannot be modified as it is being used by other modules / teams.

 

Hello @Anubhuti Mittal ,

 

I'm facing the same issue when external user clicks on download button while exporting excel sheet. The page redirects to sys_attachemnt.do.

Could you please help, thankyou.