Hi, Niklas.

So how would I do it from the FTPlet (probably in methods 
onUploadStart/onUploadEnd)?
And how come I can upload files and see onUploadEnd being not called at 
all?

Hiran


Hiran Chaudhuri
System Support Programmer / Analyst
IT Service Assurance
Hosting & Regional Services (IH)
Amadeus Data Processing GmbH
Berghamer Strasse 6
85435 Erding
T: +49-8122-43x3662
[email protected]
http://www.amadeus.com





From:   Niklas Gustavsson <[email protected]>
To:     [email protected]
Date:   24-06-10 15:06
Subject:        Re: Enrich error messages



On Thu, Jun 24, 2010 at 2:57 PM, Hiran Chaudhuri
<[email protected]> wrote:
> On my attempt to integrate ftpserver into our application I also want to 
ensure files uploaded by clients match certain criteria, e.g. the filename 
must match a certain pattern.
> Meanwhile I got it that far that the AuthorizationRequest is not 
approved and therefore the whole transfer gets rejected with a code 550.

I'm not sure that using the authorization API is the best way of doing
this. I would recommend using an Ftplet and to intercept uploads, in
which case you can return whatever reply code you see fit.

/niklas





Reply via email to