martin magakian
martin magakian

Reputation:

During a FTP upload, the total size of the file is send?

When you send a file by HTTP, web browsers send the total file size in the http header.

Do you think it's the same with the FTP protocole?

Martin

Upvotes: 2

Views: 1844

Answers (2)

Lance Richardson
Lance Richardson

Reputation: 4610

No, an FTP file transfer is treated as a stream of bytes that ends when the connection is closed normally. There is a new "SIZE" command for FTP defined in RFC3659, but this is a fairly recent addition that I would guess isn't seeing a lot of use.

Upvotes: 0

bdonlan
bdonlan

Reputation: 231443

FTP has a number of transfer modes, but none of them send the entire length of the file beforehand. You can see them all in RFC 959, section 3.4.

Note that the SIZE command defined in RFC 3659 is purely for downloads, not uploads.

Upvotes: 5

Related Questions