Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.1k views
by (51.6k points)
An Integral FTP user asks:
So, I

1 Answer

0 votes
by (51.6k points)
Integral FTP uses a connection-pool to enable it to transfer multiple files simultaneously. Version 1.0 uses a fixed pool of 5 connections. So if you launch 10 uploads then it'll start uploading 5 of them immediately and upload the other 5 as connections are freed up when other uploads complete.

onTransferProgress will be called for all files that are currently being uploaded. So in your case the first callback you receive could belong to any of the 5 files that are being transferred first. In other words, you can't assume that the first callback will belong to the first file that you requested to be uploaded.

There are two ways you can tell which callback invocation belongs to which file. One is the file-name argument. The other is the taskID which is a property of the status argument. The taskID uniquely identifies the uploadFile operation that you request for a particular file. It is returned by the FTPClient.uploadFile method.

- Hans (EnterpriseDT)

Categories

...