FTP Auto Transfer Mode Mistakes?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pwright2
Junior Member
Junior Member
Posts: 17
Joined: 2007-05-10, 12:04 UTC

FTP Auto Transfer Mode Mistakes?

Post by *pwright2 »

When doing FTP downloads of my website, I periodically find that it haS stopped, complaining/warning that transferring binary files in text mode will make them unusable. These are either .php or .js files. I have set both .php and .js as text in the automatic list. Looking at the files does not reveal any hidden binaries (though I am not sure I would know). It is consistent. Attempting FTP of a guilty file gives the same error.

Do you know cause/cure?

-----Paul-----
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC checks for characters with codes 0..6 in the first block received from the server. The most common case are files in UTF-16 Unicode, where every second character in English is a 0 byte.
Author of Total Commander
https://www.ghisler.com
pwright2
Junior Member
Junior Member
Posts: 17
Joined: 2007-05-10, 12:04 UTC

Post by *pwright2 »

It has been a while since I checked in. Thanks for the reply.

If this is the cause, is there a way to tell TC to ignore that particular trigger? Or some other workaround?

-----Paul-----
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, you can add the line:
WarnWrongMode=0

to your wcx_ftp.ini, under section header [General].
Author of Total Commander
https://www.ghisler.com
Post Reply