Open attachments in a new browser window

Hi,

If you click an attachment in Sugar (6.x), for example in the Notes section, then the file will be downloaded.

We have a lot of attached PDF's in our CRM. Is it possible to open/view the PDF (in a new browser window) instead of having to download the file each time?

That would save us a lot of time.

Parents
  • I already implemented it by changing download.php which is not upgrade safe.


    Can it also be done in an upgrade safe way?

  • Hello Luolun,

         One thing you can do and that is create new button in notes module e.g. 'View pdf' and on clicking of that button you can call your custom file where you have custom code to show that pdf in new tab/window of a browser. In this way you can achieve it and it is also upgrade safe. Let me know if you have any query.

Reply
  • Hello Luolun,

         One thing you can do and that is create new button in notes module e.g. 'View pdf' and on clicking of that button you can call your custom file where you have custom code to show that pdf in new tab/window of a browser. In this way you can achieve it and it is also upgrade safe. Let me know if you have any query.

Children