ASCII / BINARY problem

adw

2009-08-23 15:39:50

I've used SmartFTP for a long time without any problems, but since I installed it on my new computer the AUTO Transfer Type doesn't work anymore.

If I try to upload a text file (PHP, HTML or CSS) with Transfer Type set to AUTO (as I always used to do) strange things happen. Sometimes it works, but most of the times the file on the server doesn't get updated or lines are duplicated inside the file.

As a temporary workaround I have been manually switching the Transfer Type between ASCII for text files and AUTO or BINARY for images. If I don't do this the files get messed up.

I went into Edit Favorites and added PHP, HTML, .htaccess and CSS in the ASCII File List under Transfer->ASCII / Binary, but this has not resolved the issue. I added these in the format .*\.html

I never had this problem on my old computer; I've always had Transfer Type set to AUTO without any problems. I am uploading the same type of files to the same servers. What am I doing wrong?

Thanks!

mb

2009-08-23 16:13:34

Upload all files in binary mode. You dont have to upload the text files in ASCII mode.

Maybe the problem (duplicate lines))comes from the fact that the files are resumed instead of overwritten. You can see that in the log in the transfer queue.

Regards,
Mat

adw

2009-08-23 16:42:36


Upload all files in binary mode.

I tried that but it doesn't work. Text files get messed up when I upload in binary or auto mode. For instance I had a page with the text abc. Then I uploaded a new version and changed it to abcdefg but the result on the server became abc<

It's really odd, but characters disappear or get put in the wrong place inside the text files around the area that I've changed. Usually when I do it a second time it does go through correctly.

Here is the log:

[12:30:18] 200 Zzz...
[12:30:43] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[12:30:43] MLST test.php
[12:30:43] 250-Begin
[12:30:43] type=file;size=88;modify=20090823173050;UNIX.mode=0644;UNIX.uid=32088;UNIX.gid=32091;unique=807g51d8673; test.php
[12:30:43] 250 End.
[12:30:46] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[12:30:46] MLST test.php
[12:30:46] 250-Begin
[12:30:46] type=file;size=88;modify=20090823173053;UNIX.mode=0644;UNIX.uid=32088;UNIX.gid=32091;unique=807g51d8673; test.php
[12:30:46] 250 End.
[12:30:59] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[12:30:59] MLST test.php
[12:30:59] 250-Begin
[12:30:59] type=file;size=84;modify=20090823173106;UNIX.mode=0644;UNIX.uid=32088;UNIX.gid=32091;unique=807g51d8673; test.php
[12:30:59] 250 End.
[12:31:30] NOOP
[12:31:30] 200 Zzz...

mb

2009-08-23 16:43:39

This is the log from the remote browser and not from the transfer queue.

mb

2009-08-23 16:45:34

Please also post the system information from the menu: Help->About "System Information" dialog.

adw

2009-08-23 17:18:49


Please also post the system information from the menu: Help->About "System Information" dialog.

Sorry about that. I hope this is the right log:

[13:04:39] Resolving host name "XXX"
[13:04:39] Connecting to 74.52.67.187 Port: 21
[13:04:39] Connected to XXX.
[13:04:39] 220---------- Welcome to Pure-FTPd [TLS] ----------
[13:04:39] 220-You are user number 2 of 50 allowed.
[13:04:39] 220-Local time is now 13:04. Server port: 21.
[13:04:39] 220 You will be disconnected after 15 minutes of inactivity.
[13:04:39] USER XXX
[13:04:39] 331 User XXX OK. Password required
[13:04:39] PASS (hidden)
[13:04:39] 230-User XXX has group access to: XXX
[13:04:39] 230 OK. Current restricted directory is /
[13:04:39] SYST
[13:04:39] 215 UNIX Type: L8
[13:04:39] Detected Server Type: UNIX
[13:04:39] RTT: 52.086 ms
[13:04:39] FEAT
[13:04:39] 211-Extensions supported:
[13:04:39] EPRT
[13:04:39] IDLE
[13:04:39] MDTM
[13:04:39] SIZE
[13:04:39] REST STREAM
[13:04:39] MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[13:04:39] MLSD
[13:04:39] ESTP
[13:04:39] PASV
[13:04:39] EPSV
[13:04:39] SPSV
[13:04:39] ESTA
[13:04:39] AUTH TLS
[13:04:39] PBSZ
[13:04:39] PROT
[13:04:39] 211 End.
[13:04:39] Detected Server Software: PureFTPd
[13:04:39] PWD
[13:04:39] 257 "/" is your current location
[13:04:39] CWD /www/lib
[13:04:39] 250 OK. Current directory is /www/lib
[13:04:39] PWD
[13:04:39] 257 "/www/lib" is your current location
[13:04:39] Remote file exist check: "test2.php".
[13:04:39] MLST test2.php
[13:04:39] 550 Can't check for file existence
[13:04:39] TYPE I
[13:04:39] 200 TYPE is now 8-bit binary
[13:04:39] PASV
[13:04:39] 227 Entering Passive Mode (74,52,67,187,61,186)
[13:04:39] Opening data connection to 74.52.67.187 Port: 15802
[13:04:39] STOR test2.php
[13:04:40] 150 Accepted data connection
[13:04:40] 25 bytes transferred. (462 bytes/s) (54 ms)
[13:04:40] 226-File successfully transferred
[13:04:40] 226 0.059 seconds (measured here), 423.24 bytes per second
[13:04:40] MDTM 20090823180422 test2.php
[13:04:40] 550 Can't check for file existence
[13:04:40] MFMT 20090823180422 test2.php
[13:04:40] 500 Unknown command
[13:04:40] MLST test2.php
[13:04:40] 250-Begin
[13:04:40] type=file;size=25;modify=20090823180447;UNIX.mode=0644;UNIX.uid=32088;UNIX.gid=32091;unique=807g51d8674; test2.php
[13:04:40] 250 End.
[13:04:40] Source File Size=25, Destination File Size=25

and system info:

+- System -----------------------------
Microsoft Windows Vista Home Premium Edition
Service Pack 1 (Build 6001)

CPU Speed : 2666 MHz
Total Memory : 8190 MB
Free Memory : 5602 MB

+- SmartFTP ---------------------------
Version : 3.0.1040.0
Time Stamp : 2009-08-20 21:39:16
Platform : x64
Id : 400069930
Maintenance : 2009-08-25
Days in use : 2

+- Language ---------------------------
en-US

+- Internet Explorer ------------------
Version : 8.0.6001.18813

+- Winsock ----------------------------
Winsock : 2.2

mb

2009-08-23 19:16:56

Yep its the correct log but I see no error/problem.