On Fri, Jul 3, 2009 at 1:15 AM, Kandarp Desai<[email protected]> wrote:
> I'm using custom Ftplet for Apache FTP server.
> Can I have two different upLoad events(defined in two different classes)
> which should be able to call based on which directory user is uploading to?
> E.g. If user uploads file to /user/XYZ/file1/, onUpload method defined in
> class org.apache.ftplet.class1 should be called
> And, If user uploads file to /user/XYZ/file2/, onUpload method defined in
> class org.apache.ftplet.class2 should be called

Yes, you can have multiple Ftplets defined and each will be called
after another. Then each Ftplet can determine if it should handle the
current upload.

/niklas

Reply via email to