file truncated after uploading to server

I am uploading plain text files (html files, to be exact) to a web server.

Most of my HTML files vary in length from about 2200 lines to 3600 lines of code, and are around 110k in file size.

Occasionally, I will find that after an upload, the file is only 59 or 60k in size, and when I re-download the corrupted file, I can see that only the first 1400 lines (approximate) made it to the server, and the rest is gone.. truncated.. vanished.

I try to re-upload the original text file over and over again, but it continually comes up short. Let me repeat, this doesn't happen to every html text file I have.. but when it does happen, it doesn't matter how many times I re-upload the troubled file.. it still gets truncated.

What I end up doing, is going to line 1400 or so in my original file (I go to the line number indicated at the end of the bad file) and I delete some extraneous white spaces (line 1400 falls right around some of the curly braces of my javascript functions). Apparently, there must be some sort of EOF character creeping into the file somehow, and when I clean out these extraneous spaces, it uploads just fine.

Anyone know where I'm going wrong? I'm using WindowsXP.. and my text editor is "TextPad" (www.textpad.com). I am not sure what the platform is of the web server.

I download and upload other similarly structured HTML files all the time from the same server.. but I never know when I'll get a truncated upload.

I am having the same problem described above however none, I repeat, none of my php files make it to the server intact. A curious thing I noticed was that all of my gifs where fine. No missing data. So, I renamed one of my php files from a php extension to a gif extension to see what would happen. It uploaded just fine, no missing data. ?? I tried changing the settings from auto to binary to see if that would take care of it but it doesn't seem to make a difference. If I want my files to be uploaded intact I have to rename them with a gif extension to get it to happen. Some help on this one would be greatly appreciated. I have five sites and each site has over 2000 files to upload. It will be a real drag to go through renaming everything on both ends.


Thanks!

+- System -----------------------------

Microsoft Windows XP Professional
Service Pack 2 (Build 2600)

CPU Speed : 398 MHz
Total Memory : 327216 KB
Free Memory : 120588 KB

+- SmartFTP ---------------------------

Version : 1.0.981.37
Time Stamp : 2004-03-15 11:56:43

+- Application DLL --------------------

controls.dll : 1.6.981.37
ftpapi.dll : 2.0.981.37
language.dll : 1.0.981.37
reseng.dll : 1.3.981.37
smarthook.dll : 1.0.2.1

+- System DLL -------------------------

unicows.dll : 1.0.4018.0
shell32.dll : 6.00.2900.2578 (xpsp_sp2_gdr.041130-1729)
shlwapi.dll : 6.00.2900.2180 (xpsp_sp2_rtm.040803-2158)
comctl32.dll : 6.0 (xpsp_sp2_rtm.040803-2158)
riched20.dll : 5.30.23.1221
schannel.dll : 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

+- Internet Explorer ------------------

Version : 6.0.2900.2180

+- Winsock ----------------------------

Winsock : 2.2

+- Internet Connection----------------

V0.90 56K Dial up

Hi try updating to the build on my signature to see if it fixes your problems.

Also, after installing the new Dev Build that Aokromes told you about, open SmartFTP, go to Tools > Settings > Transfer > ASCII/Binary and press the "Set Defaults" button at the bottom of that window.

On top choose "Auto Transfer Type". Press OK and try to connect to your site...

It may be a week or so but I will try to let you know how things work out as soon as I know. Thanks for the help!

Gary