Re: Restricting hidden files to upload

2017-02-20 Thread Faseela Mohamed
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

p

2017-02-20 Thread Carl Youngblood
unsubscribe

RE: Restricting hidden files to upload

2017-02-20 Thread Gary Bell
Sorry, didn't read the OP properly. I would agree with John. I do something similar in my code.

Re: Restricting hidden files to upload

2017-02-20 Thread John Hartnup
Do you want to forbid upload of hidden files? I think if your onUploadStart() sends a `550 Permission Denied` response, then returns SKIP, you'll achieve that goal. You would not need to delete the file, as it would never get created. You would need a different way to tell if the file is hidden