deeshubby
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.
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.