0 votes

I have many large files to upload to a server, each file is many GB.
can you provide some recommendations with respect to sending the files in chunks, or does ftp.dll already do this?

I also want to throttle the upload progress so the ftp process doesn't consume too much bandwidth.

Any suggestions?

by

1 Answer

0 votes

You can slow down the process by adding delay in Ftp.Progress event. Internally Ftp.dll use 32K buffer while downloading and uploading data.

Also, there are two Upload overloads:

FtpResponse Upload(string remotePath, long remoteStartPosition, Stream source)
FtpResponse Upload(string remotePath, long remoteStartPosition, byte[] data)

You can use them to start uploading at specified remote file position. Your server must support REST command in such case.

by (297k points)
...