ASCII mode transfer corrupts files nix=>win
|Reported by:||ravenm||Owned by:|
|Keywords:||Cc:||ravenm, Tim Kosse|
|Component version:||Operating system type:|
|Operating system version:|
I have had multiple problems transferring to and from
various linux servers from XP with filezilla my current
version is 2.2.18. this problem was noted on previous
versions as well.
I have noted may other seemingly unresolved but closed
complaints about this bug.
It appears the problem relates to the file being first
saved to the server in binary mode, in other words the
crlf pair is retained.
if you then transfer the file to a windows machine in
ascii mode the file becomes corrupted.
Filezilla does not account for the crlf pair and adds
an extra cr making it crcrlf
so in hex
0D 0D 0A
This has been verified.
to repeat it upload an ascii win/dos file to a nix
server in binary mode
then download it in ascii mode
open the file in a hex editor not the hex values as above
I beleive this is the main source of various complaints
about ascii mode transfers
filezilla should check for crlf not just cr when doing
the ascii nix=>win conversion. if there is a crlf pair
then leave as is if there is only a lf then add the cr