Topic "Filtering uploaded files with a certain regexp"

Author Message
momento878
[View user's profile]

Joined: 2009-06-16
Posts: 2
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 systax:
[a-z0-9\_\.\-]+

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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This is rather task for the server to enforce the rules.
_________________
Martin Prikryl
momento878
[View user's profile]

Joined: 2009-06-16
Posts: 2
prikryl wrote:
This is rather task for the server to enforce the rules.


so I understand this can't be done in WinSCP ?

our system administrator doesn't know of a way to enforce these rules - if you know of a way to do this please advise.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
momento878 wrote:
so I understand this can't be done in WinSCP ?

Correct.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License