Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

mabid

Posts

4

Joined

Tue Aug 11, 2009 9:44 pm

How to validate that a file has been uploaded successfully??

by mabid » Tue Aug 11, 2009 9:50 pm



We basically want to validate whether we have successfully uploaded the file before trying to rename it or place new completion file. For this below is purposing solution can we implement them in FTP/FTPS/SFTP

1) By comparing the sizes of files available locally and the one uploaded.
2) By validating the header & trailer of the uploaded file, if both are present only then we can be sure that file upload is successful.

IF there is another mechanism which can tell about the file uploaded successfully please share also.

Kindly update me as soon as possible.

Thanks,
Abid

[color=blue]
[/color]
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How to validate that a file has been uploaded successful

by support2 » Wed Aug 12, 2009 6:38 am

For FTP and FTPS, edtFTPj/PRO supports automatic validation via 1) the CRC of the files (if the server supports XCRC, e.g. ), or 2) via the file size.

This is via the setTransferIntegrityCheck() method. This isn't available (yet) for SFTP.
no avatar
User

mabid

Posts

4

Joined

Tue Aug 11, 2009 9:44 pm

Re: How to validate that a file has been uploaded successful

by mabid » Mon Aug 17, 2009 3:19 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How to validate that a file has been uploaded successful

by support2 » Mon Aug 17, 2009 6:02 pm

no avatar
User

mabid

Posts

4

Joined

Tue Aug 11, 2009 9:44 pm

Re: How to validate that a file has been uploaded successful

by mabid » Mon Aug 17, 2009 6:47 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How to validate that a file has been uploaded successful

by support2 » Mon Aug 17, 2009 8:54 pm

no avatar
User

mabid

Posts

4

Joined

Tue Aug 11, 2009 9:44 pm

Re: How to validate that a file has been uploaded successful

by mabid » Mon Aug 17, 2009 9:27 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: How to validate that a file has been uploaded successful

by support2 » Tue Aug 18, 2009 7:13 am


Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign