Thanks for the inputs ... To avoid even go to onUploadStart() , I used the below method. ..
else if ("STOR".equals(command)) { if (defaultLogin.equals(session.getUser()) ) return FtpletResult.DISCONNECT; *if (reqLine.contains("STOR .")){ System.out.println("User upload HIDDEN FILE "); return FtpletResult.SKIP; }* return onUploadStart(session, request); } On Mon, Feb 20, 2017 at 4:20 AM, Gary Bell <gary.b...@aero.bombardier.com> wrote: > Sorry, didn't read the OP properly. I would agree with John. I do > something similar in my code. >