Self-Solve Knowledge Search

Minimize Maximize
How to prevent users from downloading a local copy of attachment ?
Title :
How to prevent users from downloading a local copy of attachment ?
Document ID :
KM00836140
Product - Version:
quality center ;
OS :
Updated :
Wed Apr 09 06:38:34 GMT 2014
Summary :
This article provides a workaround using workflow to prevent users from downloading a local copy of attachment.
In workflow , the Functions for manipulating attachments "Attachment_New" , "Attachment_CanDelete" and "Attachment_CanOpen" will not help to prevent users from downloading the attachment locally to a computer.Users can save a local copy of attachment by clicking on 'Save As" button.

Is there a way to prevent users from downloading a local copy of attachment using workflow ?

Solution
NOTE : Script provided here is only on an "AS-IS" basis. Workflow customization is out of scope of support .

 

Workflow code can be used to disable the action of the “Save As” button.

The code must be implemented in "ActionCanExecute" subroutine after the following line:

ActionCanExecute = DefaultRes

Here is the example code which checks whether the button was clicked and disables its action:

============

if (actionname = "Attachment.Save" or actionname = "attach__download_save") then

ActionCanExecute = false

end if

===========

Users need to include this logic in their workflow and enhance it as per the need. The script is just a example and not a complete solution.