Menu

Is there any way I can put a restriction in a UserRequest?

2020-08-13
2020-09-23
  • jose antonio garcia panadero

    Hello everyone, I was wondering if there is any option of creating a restiction when uploading a file in a UserRequest that isn't going to let me upload 2 files with the same name, could it be posible? thx

     
    😄
    1
  • Pierre Goiffon

    Pierre Goiffon - 2020-09-23

    Hello,
    Attachements are saved in pure iTop objects : Attachment. My first idea would be to add a uniqueness constraint, but if this object contains the item_class and item_id fields, there are no fields for the file name.
    Maybe add a custom code in the DoCheckToWrite method of this object ?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.