Return codes not explicit

Report bugs or issues with Core FTP Server here
Locked
UNICEFCanada
Posts: 4
Joined: Mon Aug 19, 2013 2:06 pm

Return codes not explicit

Post by UNICEFCanada »

FTP server is working just fine, however when uploading files the server's return code is "Transfer Complete" whereas other FTP servers return "Transfer Complete. xxx bytes transferred." Which we need for an automated process as a verification that all information has been transferred.

Is there a setting that needs to be adjusted to get this extended return code?

Any and all help is greatly appreciated
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

It shouldn't be an issue, but could you provide an example of what you are currently seeing and what you expect to see?
UNICEFCanada
Posts: 4
Joined: Mon Aug 19, 2013 2:06 pm

Post by UNICEFCanada »

Received message from client accessing the site. Here is what they said.

"When transferring a CSV file, a ftps server will usually return to us something like "Transfer complete. 266 bytes transferred." Your ftps server however, only returns "Transfer Complete", without any indication of how many bytes were sent."

This is an automated process from the client side and they use the return code where in the example above it says 266 bytes transferred as the check to verify that the transfer was completed successfully. In some cases with other ftps sites, they receive the Transfer complete. O bytes transferred indicating an issue. So we need to get the number of bytes transferred to be reflected when the system responds back to the client.
The client is using a Java API and is expecting:
Response: 226 Transfer complete. 166 bytes transferred. 166 bps.
ForumAdmin
Site Admin
Posts: 1006
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Do you happen to know if the bps is required by the API?

An option can be added to put in the bytes transferred but the bps seems moderately unncessary, since the client is able to calculate it based on the bytes.
UNICEFCanada
Posts: 4
Joined: Mon Aug 19, 2013 2:06 pm

Post by UNICEFCanada »

[quote="ForumAdmin"]Do you happen to know if the bps is required by the API?

An option can be added to put in the bytes transferred but the bps seems moderately unncessary, since the client is able to calculate it based on the bytes.[/quote]

The bps is not necessary. All that is required is the bytes transferred as a verification that the entire file was transferred and received correctly.
ForumAdmin
Site Admin
Posts: 1006
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Option should be added in by early next week (build 498 and greater).
UNICEFCanada
Posts: 4
Joined: Mon Aug 19, 2013 2:06 pm

Post by UNICEFCanada »

[quote="ForumAdmin"]Option should be added in by early next week (build 498 and greater).[/quote]

Thank you. Will keep an eye out for it.
Locked