On Fri, Nov 14, 2008 at 3:57 PM, Sai Pullabhotla
<[EMAIL PROTECTED]> wrote:
> I would recommend using an Ftplet to trap the "STOR", "STOU" and "APPE"
> commands and from the beforeCommand method, check the data type in use using
> the FtpSession.getDataType() and reject the STOR request if it is not
> binary. You can send a reply back to client with waht ever message you want
> to say. The client then would definitely know what he is doing wrong and
> will try the upload again with the proper data type.

I agree with the suggestion.

> If you do not like this solution, it is open source, so you can tap into the
> code change it however you like :)

If you do decide to hack up support for changing the default type,
feel free to let us know. I would not want such support in the core
project (as it would not follow the RFC) but it would be useful to
know if it works.

/niklas

Reply via email to