Specifying File Name Filters
You can restrict particular actions for files that match a specified pattern. For example, you can restrict users from uploading files that end with “exe”. You can also restrict access to subfolders in the virtual file system that match a specified pattern.
To specify file name filters
1. In My webMethods: Administration > Integration > Managed File Transfer > User Management > Templates.
3. Select the template from the template list.
4. Click the Restrictions tab.
5. If you want to restrict particular actions for certain files, do the following in the Patterns area of the File Name Filters section:
a. Click the
button. b. From the Command list, select a command (Rename, List, Download, or Upload).
c. From the Filter Type list, select a filter type (Starts with, Ends with, or Contains).
d. In the File Name box, type the portion of the file name that the Filter Type criterion should evaluate (for example, “exe”).
Note: | Any characters except wildcard characters or regular expressions are permitted. ActiveTransfer Server treats those characters as part of the file name. |
e. Add more file name filters as necessary by clicking
. 6. If you want to restrict access to specific folders in the virtual file system, do the following in the Block Paths Matching These Patterns area of the File Name Filters section:
a. Click the
button. b. Type the virtual file system path you want to block in the new row.
Tip: | You can use simple pattern matching by preceding the pattern with the tilde (~) character. For example, to deny user access to the folder /system/bin, you would type: ~/system/bin/* |
c. Add more block paths as necessary by clicking
. 7. Click Save.