View Full Version : Downloading html problem
gwoyi
06-22-2006, 10:24 PM
* FlashFXP v3.2.0 build 1080, registered
* WinXP
When I try to download an html file from server, I found the file size did not match each other (server file is smaller in size). When I open the file, I found there are empty lines generated in between. Everytimes I download it, 1 empty line added.
Once I asked my co-workers to open the file download by FlashFXP, same problem happened, but the file is ok when my co-workers download for me by another FTP client.
Same problem do not apply to all html files, just some, what can I do?
MxxCon
06-23-2006, 05:50 PM
it's not a bug.
you need to make sure that flashfxp download text files, such as html, in ASCII mode.
gwoyi
06-26-2006, 04:41 AM
It is in ASCII mode already.
MxxCon
06-26-2006, 09:07 AM
show status log of file transfers to see if there's anything incorrect
gwoyi
06-27-2006, 01:47 AM
I am not quite sure if there is any problem, here is the log:
[R] 257 "/data/abc/060627/static/docroot_now" is current directory.
[R] PASV
[R] 227 Entering Passive Mode (10,11,xx,yyy,203,95)
[R] Opening data connection IP: 10.11.xx.yyy PORT: 52063
[R] LIST -al
[R] 150 Opening ASCII mode data connection for /bin/ls.
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 1.55 second (1.0 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (10,11,xx,yyy,203,148)
[R] Opening data connection IP: 10.11.xx.yyy PORT: 52116
[R] RETR index.html
[R] 150 Opening ASCII mode data connection for index.html (57996 bytes).
[R] 226 Transfer complete.
Transferred: index.html 58 KB in 1.39 second (42.1 KB/s)
Transfer queue completed
Transferred 1 file totaling 58 KB in 3.14 seconds (42.1 KB/s)
The file is originally 57996 bytes in the server, it becomes 59918 bytes after download.
Thanks for your help.
MxxCon
06-27-2006, 07:14 AM
change in file size is normal becuase different OS(like Windows, Mac, Unix) store 'new line' info differently.
some use CR, some use LF/CR, some use LF. more detailed explanation if avail at these 2 urls http://en.wikipedia.org/wiki/Line_feed and http://en.wikipedia.org/wiki/Ftp#Data_format
sounds like whoever uploaded those file have misconfigured ftp client..
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.