It's all about the answers!

Ask a question

How to restrict file types or certain file extensions for RTC Work Item Attachment

anup Gaur (1392444) | asked Oct 02 '17, 10:11 a.m.

We are currently using CLM version 6.0.1. We would like to restrict people from attaching arbitrary files to work items. On when hand we would like people to upload attachments on the other we would like to restrict it to certain extensions like .doc, .ppt, .pdf, .xls, xlsx etc. only. In principle we would like to block people from uploading files with extensions not in our whitelist.

I have written some basic RTC extension for custom notification earlier and I would like to know if this approach is possible. We can create an Operation Advisor which will get the file extension of all the attachments of the work Item and prevent save, if the file type is not in our whitelist. Any sample code to get the attachment file name, URL etc will help a lot.

One answer

permanent link
Ulf Arne Bister (1.3k413) | answered Oct 04 '17, 10:34 a.m.


your approach with a Operation Advisor sounds like the way to go. You ought to find some relevant code for work item attachments e.g. in uploading-attachments-to-work-items in Ralph Schoons blog.

- Arne

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.