Hi Is there a way to restrict the hidden files to be uploaded in to the folders. Right now I am deleting the hidden file on onUploadStart and onUploadEnd methods. It still upload the file and deletes. Is there an option to restrict certain types of files. Any help is appreciated .. Thanks
public FtpletResult onUploadStart(FtpSession session, FtpRequest request) throws FtpException, IOException { System.out.println("User uploaded FtpServer"); List< ? extends FtpFile > ftpFileList = session.getFileSystemView().getWorkingDirectory().listFiles(); for (FtpFile ftpFile :ftpFileList ){ System.out.println(ftpFile.getName()); if (defaultLogin.equals(session.getUser())) ftpFile.delete(); if(ftpFile.isHidden()) { ftpFile.delete(); return FtpletResult.SKIP; } } return super.onUploadStart(session, request); }