Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.7k views
in Java FTP by (120 points)
Hello,
I'm using edjFTP in an application to transfer data to a unix server using a unique account for transfering. The problem I have is if someone try to send a file with a name that correspond to a file allready transfered, he will get a exception telling that the file looks like a dupe:
om.enterprisedt.net.ftp.FTPException: courageux.jpg: This file looks like a dupe!! It was uploaded by oracle ( 6d 1h ago).

I'd like to know if there is a way to avoid that and tell him to upload the file. Maybe it's some setting on the ftp server but I didn't find anything in the documentation.
Thank for your help

1 Answer

0 votes
by (162k points)
Check if it exists e.g. get its timestamp (there's a method for this). If found delete it.

Or turn off strict server return code checking - see the Javadoc (for 1.4.2).

Hello,
I'm using edjFTP in an application to transfer data to a unix server using a unique account for transfering. The problem I have is if someone try to send a file with a name that correspond to a file allready transfered, he will get a exception telling that the file looks like a dupe:
om.enterprisedt.net.ftp.FTPException: courageux.jpg: This file looks like a dupe!! It was uploaded by oracle ( 6d 1h ago).

I'd like to know if there is a way to avoid that and tell him to upload the file. Maybe it's some setting on the ftp server but I didn't find anything in the documentation.
Thank for your help

Categories

...