Jump to content

Recommended Posts

Posted

When I transfer my files via FTP to my domain, the file size is slightly less.

I am not getting my whole file transferred. What do I need to do differently?

 

For example, the file could be 90.000 in size when it leaves my computer hard drive, and when it lands on the domain, the size is 89,754.

 

Is this natural?

 

:eek:

 

Thanks,

queenpictoria

Posted

As for as I know, this is. I'm assuming the PC you're using is running Windows, whereas the TCH servers are running Linux. If I remember right, each filesystem (NTFS or FAT32 on Windows, probably EXT2 or EXT3 on the TCH servers) stores data in different size blocks. That's without jumping into too much technical detail...

Posted

Actually, what's happening is that the files in question are probably being uploaded in ASCII mode, and during the transfer, Windows line ending characters (CR+LF) are converted to Linux line ending characters (just LF). The result is that one character is removed from every line in the file when it is uploaded. The file size in bytes on the Linux server will be smaller than the file size on Windows by the number of CR characters removed.

 

Assuming the files in question are supposed to be uploaded in ASCII mode (like .html files, .php files, etc.), yes, this is natural and it is supposed to happen so the server can properly read the uploaded files.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...