File -> Import in Team site . I would not want the users to import .war/.zip files to a particular branch . Understand we will need to build a custom import script . Any best solution ?
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
You can build an HTML import to do that. It is already in TS 7.4+ (with the SP) but I do nothink there is a way to filter out the content
Thank you for the reply Andy . We are currently on TS 7.3.2 and plan to upgrade to 8.2 only by next year . Till then , would need a custom import to filter out the content .
I have never tried to filter on import (just getting the applet to run most of the time was a win). But I have used autoprivate and a simple workflow script to prevent undesired files from being submitted. The first task usually a file check script that can cover a variety of checks (filetype, size, naming convention, etc.). Usually have a filter in the deployment config as a backup as well.
You can also possibly use an event handler to sort of post-handle this. I have set up an event handler that recognizes when someone has imported a file, so you could do something similar and then check if the file is a .war or .zip and then immediately delete the file and then send a notification out or something. I'm just not sure if you can easily tell who imported the file - but you should be able to tell based on the Modified By or Created By metadata. However if you don't want those files to ever get imported in the first place, this would be too late in that process.