atom feed9 messages in org.apache.mina.ftpserver-usersRe: Modifying STOR response on upload
FromSent OnAttachments
Niklas TherningJan 12, 2009 7:27 am 
David LatorreJan 12, 2009 9:07 am 
Niklas GustavssonJan 12, 2009 9:15 am 
Niklas TherningJan 12, 2009 11:14 am 
Niklas GustavssonJan 12, 2009 11:35 am 
Niklas TherningJan 12, 2009 12:42 pm 
Niklas GustavssonJan 12, 2009 1:23 pm 
DanJan 12, 2009 2:37 pm 
David LatorreJan 13, 2009 1:59 am 
Subject:Re: Modifying STOR response on upload
From:Niklas Gustavsson (nik@protocol7.com)
Date:Jan 12, 2009 9:15:15 am
List:org.apache.mina.ftpserver-users

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