On Mon, Jan 12, 2009 at 4:27 PM, Niklas Therning <nik...@trillian.se> wrote:
I'm trying to intercept file uploads and send the uploaded files to a
backend server which does some processing. If the processing fails I'd like
to return a negative response to the STOR command sent by the client. Is
that possible? I don't think I can do this in onUploadEnd in an Ftplet since
when that method is executed the positive response has already been written
to the client. Any ideas?
I would have a look at creating a custom file system that integrates
with your backend system. The reason behind this is that clients can
use several ways of uploading files (STOR, STOU, APPE, with and
without PROT P) and managing this in an Ftplet is a pain. I find
creating a custom file system easier. Do you also need to have a file
(as in files on a storage) working or are you only looking to upload
to your backend server?
/niklas