Hi,

I have set up the Apache FTP server as part of a standalone desktop
application, that is, the server starts when the application starts.
This works fine and was very simple to configure and use. 

I now want to add an FTPlet that will respond to a file being received.
My understanding is that I should create a new class which extends
DefaultFtplet and which overrides onUploadEnd(). I have created such a
class but I'm not sure how to proceed. My first question is, how do I
register the FTPlet with the server? I'm not using spring and I'm not
too familiar with spring conventions so my preference would just be to
add the FTPlet programmatically. Is this possible? 

My second question is, is it possible to get information (the file path
for example) about the file upload that has just ended? 

I assume that a common use case of FTPlets is to respond to a file
upload by doing something with the uploaded data and this is precisely
what I have in mind.

I apologise if this is already in the documentation, I pieced together a
certain amount already from the docs and the mailing list but I couldn't
find a fully worked "Hello World" style example.

Thanks,
- phil

Reply via email to