Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (160 points)
Hello

I am using EDT FTP 1.2.3 to upload files to about 40 different sites but for some reason when I upload to Microsoft ftp on server 2003 the files end up corrupted on the server.

No errors are showing in the logs of either the client or the server and the file actually shows up on the iis server with the correct size but when you try and open it up the file is just empty. If I try and use the

3 Answers

0 votes
by (162k points)
Post a short excerpt of the log file
0 votes
by (160 points)
As I said the log file contains no errors.

I have figured out the issue. It appears that a snip it of code I wrote was introducing a whitespace character at the end of the remote file name. This had the effect of causing Microsoft FTP on IIS 7 to corrupt the file. This is probably a bug with IIS but it is easily remedied by trimming the file names before submitting them to IIS.

This is clearly a problem with IIS it should throw an error not write corrupt the file to the Microsoft Server 2003 file system. Regardless its easier to out fox the problem on the client side by trimming the filename.

Best of luck,

EDT might consider compensating for this Microsoft bug but at very least I am posting the solution here hopefully it will benefit somebody
0 votes
by (51.6k points)
Thanks for letting us know the solution to this problem.

- Hans (EDT)

Categories

...