Forum Discussion
Yoann_Maingon
9 years agoAccelerator I
on the file itemtype, you need to add a server event triggered on the event "onBeforeAdd"
the Csharp method will have a context = the AML request to add the file.
something like this.getProperty("filename") should give you the filename to check the extension, check on the file Itemtype if there is a more specialized tag something like "extension". If the extension is correct for you return "this" (it passes it to the onAdd action handler inside Aras) if not then return an error (something like return this.getInnovator().newError("invalid filetype")