Filtering uploaded files with a certain regexp
Hi
a number of workers in my department are using WinSCP (Version 3.8.2) to upload files to the server.
some of the time they upload files with names that contain invalid characters like ";" or "?" etc.
I would like to limit the files that are uploaded to a certain pattern, here it is in regular expression syntax:
meaning that any filename that contains a character that is not one of following:
a to b (case insensitive), any digit, "_" , "." or "-"
will be prevented from uploading.
I've tried to do this using file masks but I could not manage to apply the above using the built in mask systax.
a number of workers in my department are using WinSCP (Version 3.8.2) to upload files to the server.
some of the time they upload files with names that contain invalid characters like ";" or "?" etc.
I would like to limit the files that are uploaded to a certain pattern, here it is in regular expression syntax:
[a-z0-9\_\.\-]+
a to b (case insensitive), any digit, "_" , "." or "-"
will be prevented from uploading.
I've tried to do this using file masks but I could not manage to apply the above using the built in mask systax.