Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Filtering uploaded files with a certain regexp

momento878 wrote:

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

Correct.
momento878

Re: Filtering uploaded files with a certain regexp

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

Re: Filtering uploaded files with a certain regexp

This is rather task for the server to enforce the rules.
momento878

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:
[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.