2
Vote

Remove GetFileSize before upload

description

FtpClient .cs

1524: client.GetFileSize(path);
1525:stream = client.OpenDataStream(string.Format("STOR {0}", path.GetFtpPath()), 0);

line 1524 should be removed as you cannot request the file size prior to transmitting the file to the server. Or rather, you can, but why bother? It is unnecessary and if the file doesn't already exist, generates an FTP error. Does not disrupt functionality, but still....

comments