In FTP protocol, how do I know when a file upload is really done?

690 views Asked by At

I get STOR (store) commands and APPE (append) commands.

The STOR might upload a complete file.

But it might be just part of a file, the rest comes later with multiple APPE commands.

How do I know when a file is really 100% uploaded?

1

There are 1 answers

0
Steffen Ullrich On

How do I know when a file is really 100% uploaded?

There is only end-of-transfer in FTP and not end-of-file. Commonly STOR is to used to transfer complete files and APPE is only used if the previous STOR broke somehow - but you never can be sure. If you need to be sure you have to built your own signalization for a finished file.