Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 12-18-2013, 02:22 PM   #1
DJAndre
Junior Member
FlashFXP Registered User
 
DJAndre's Avatar
 
Join Date: Mar 2004
Location: San Diego, CA
Posts: 12
Default

I've recently read that switching to Binary can corrupt some files during transfer.

Here is something I don't quite understand. When I upload the UNIX file to the server it stays intact. No changes. So the filter for PHP to be transferred as ASCII is working.

But when I download from the server to my PC, that's when the file gets changed, even though it's the same setting for the transfer. Something has to give? How come other transfer tools are not having this issue? (i.e. MS FrontPage, FileZilla, CPanel, and even Windows built in FTP browser).

So just as an experimentation, I deleted from the ASCII filter the extension .php. I then transferred a file from the server to my PC and no more double spaces in between, but it did change the formatting from UNIX to Windows/DOS. Below is the Session Log for the download:

Code:
FlashFXP 4.4.3 (build 2029)
Support Forums http://forum.flashfxp.com
Winsock 2.2 -- OpenSSL 1.0.1e 11 Feb 2013
[R] Connecting to XXXXXXXXX -> IP=XXXXXXXX PORT=21
[R] Connected to XXXXXXXXXXX
[R] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[R] 220-You are user number 1 of 46 allowed.
[R] 220-Local time is now 14:41. Server port: 21.
[R] 220-IPv6 connections are also welcome on this server.
[R] 220 You will be disconnected after 15 minutes of inactivity.
[R] USER XXXXXXX 
[R] 331 User XXXXX OK. Password required
[R] PASS (hidden)
[R] 230 OK. Current restricted directory is /
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R]  EPRT
[R]  IDLE
[R]  MDTM
[R]  SIZE
[R]  MFMT
[R]  REST STREAM
[R]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[R]  MLSD
[R]  AUTH TLS
[R]  PBSZ
[R]  PROT
[R]  ESTA
[R]  PASV
[R]  EPSV
[R]  SPSV
[R]  ESTP
[R] 211 End.
[R] PWD
[R] 257 "/" is your current location
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3604, Waiting for connection.
[R] PORT 192,168,1,108,14,20
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2110
[R] 226-Options: -a -l 
[R] 226 57 matches total
[R] List Complete: 6 KB in 0.32 second (6.2 KB/s)
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3605, Waiting for connection.
[R] PORT 192,168,1,108,14,21
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2111
[R] 226-Options: -a -l 
[R] 226 57 matches total
[R] List Complete: 6 KB in 0.32 second (6.2 KB/s)
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
[R] PORT 192,168,1,108,14,22
[R] 200 PORT command successful
[R] RETR index.php
[R] 150-Connecting to port 2112
[R] 150 6.0 kbytes to download
[R] 226-File successfully transferred
[R] 226 0.000 seconds (measured here), 54.30 Mbytes per second
Download: index.php 5 KB in 0.00 second (6.0 KB/s)
Transfer queue completed
Transferred 1 File (5 KB) in 0.41 second (6.0 KB/s)
I also plan to test what happens when I transfer a UNIX php file to the server, to see if that formatting also changes?

Update: Transferring the UNIX php file to the server from my PC, still stays as UNIX. Below is the session log for the upload.

Code:
FlashFXP 4.4.3 (build 2029)
Support Forums http://forum.flashfxp.com
Winsock 2.2 -- OpenSSL 1.0.1e 11 Feb 2013
[R] Connecting to XXXXXX -> IP=XXXXXXXXX PORT=21
[R] Connected to XXXXXXXXX
[R] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[R] 220-You are user number 1 of 46 allowed.
[R] 220-Local time is now 14:44. Server port: 21.
[R] 220-IPv6 connections are also welcome on this server.
[R] 220 You will be disconnected after 15 minutes of inactivity.
[R] USER XXXXXXX
[R] 331 User XXXXXXX OK. Password required
[R] PASS (hidden)
[R] 230 OK. Current restricted directory is /
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R]  EPRT
[R]  IDLE
[R]  MDTM
[R]  SIZE
[R]  MFMT
[R]  REST STREAM
[R]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[R]  MLSD
[R]  AUTH TLS
[R]  PBSZ
[R]  PROT
[R]  ESTA
[R]  PASV
[R]  EPSV
[R]  SPSV
[R]  ESTP
[R] 211 End.
[R] PWD
[R] 257 "/" is your current location
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3635, Waiting for connection.
[R] PORT 192,168,1,108,14,51
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2113
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.32 second (6.1 KB/s)
[R] CWD /public_html
[R] 250 OK. Current directory is /public_html
[R] PWD
[R] 257 "/public_html" is your current location
[R] Listening on PORT: 3636, Waiting for connection.
[R] PORT 192,168,1,108,14,52
[R] 200 PORT command successful
[R] MLSD
[R] 150 Connecting to port 2114
[R] 226-Options: -a -l 
[R] 226 56 matches total
[R] List Complete: 6 KB in 0.32 second (6.1 KB/s)
[R] TYPE I
[R] 200 TYPE is now 8-bit binary
[R] MLST testfile.php
[R] 550 Can't check for file existence
[R] PORT 192,168,1,108,14,53
[R] 200 PORT command successful
[R] STOR testfile.php
[R] 150 Connecting to port 2115
[R] 226-File successfully transferred
[R] 226 0.226 seconds (measured here), 25.49 Kbytes per second
Upload: testfile.php 5 KB in 0.23 second (5.8 KB/s)
[R] MFMT 20131218193229 /public_html/testfile.php
[R] 213 UTIME OK
Transfer queue completed
Transferred 1 File (5 KB) in 0.83 second (5.8 KB/s)
Now to solve why the formatting changes from UNIX to Windows/DOS when being transferred from server to PC.

I consulted with a PHP developer and he said that perhaps FileZilla fixed this issue on their end, because most PHP devs use that "free" platform than FlashFXP. So of course that issue was reported to FileZilla devs about this issue and they must have fixed it on their end. FlashFXP devs perhaps need to catch up with this issue.

FileZilla does not change the formatting when I download the UNIX files to my PC. They stay intact in the same formatting.
__________________
My System Info:

App: FlashFXP 4.4.3 (build 2029) [registered]
OS: WinXP Pro
Router: Linksys WRT54G build 5
Firewall: COMODO
Anti-Virus: AVAST
Network: Broadband
ISP: cox.net

Last edited by DJAndre; 12-18-2013 at 02:48 PM.
DJAndre is offline  
Old 12-19-2013, 01:05 AM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,882
Default

Quote:
Originally Posted by DJAndre View Post
I've recently read that switching to Binary can corrupt some files during transfer.
That is incorrect. It's impossible for Binary transfer to "corrupt" files because it transfer everything 1:1 byte-identical.
If you transfer binary file as ASCII then yes, it will corrupt it.

Quote:
Originally Posted by DJAndre View Post
I consulted with a PHP developer and he said that perhaps FileZilla fixed this issue on their end, because most PHP devs use that "free" platform than FlashFXP. So of course that issue was reported to FileZilla devs about this issue and they must have fixed it on their end. FlashFXP devs perhaps need to catch up with this issue.
Baseless conjecture.
FlashFXP has been around for about 15 years now and has been used by countless web developers all over the world.
FlashFXP transfer file binary and ascii files just fine. It's just the matter of figuring out what's wrong with your setup.

Post session log from filezilla showing what transfer mode it uses.

In notepad++ go to "View" menu, "Show Symbol", "Show end of Line". See what kind of characters do you have in your files.
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 12-19-2013, 02:42 PM   #3
DJAndre
Junior Member
FlashFXP Registered User
 
DJAndre's Avatar
 
Join Date: Mar 2004
Location: San Diego, CA
Posts: 12
Default

Once again, thank you for your support. Hopefully we can find a fix and I can continue using FlashFXP as my FTP client. I have not gotten used to using FileZilla--I kept everything at default when I installed it.

Quote:
Originally Posted by MxxCon
Post session log from filezilla showing what transfer mode it uses.
So here is the log of downloading a PHP UNIX file from my server: (Due notice that when it detects the /public_html directory it classifies it as 8-bit binary--something that FlashFXP doesn't display in it's LOG. -- I don't know if it's because in FlashFXP I have it set up the mode to Active and not PASV? -- Click here to learn why I adjusted FlashFXP to Active mode: https://www.flashfxp.com/forum/flash...ion-timed.html -- notice the date

Also, even if FlashFXP is set up to PASV mode, it doesn't fix my issue.

FileZilla's LOG:
Code:
Status:	Connecting to XXXXXXXXX...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 1 of 46 allowed.
Response:	220-Local time is now 14:17. Server port: 21.
Response:	220-IPv6 connections are also welcome on this server.
Response:	220 You will be disconnected after 15 minutes of inactivity.
Command:	USER ******** 
Response:	331 User ******** OK. Password required
Command:	PASS *********
Response:	230 OK. Current restricted directory is /
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Extensions supported:
Response:	 EPRT
Response:	 IDLE
Response:	 MDTM
Response:	 SIZE
Response:	 MFMT
Response:	 REST STREAM
Response:	 MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:	 MLSD
Response:	 AUTH TLS
Response:	 PBSZ
Response:	 PROT
Response:	 TVFS
Response:	 ESTA
Response:	 PASV
Response:	 EPSV
Response:	 SPSV
Response:	 ESTP
Response:	211 End.
Status:	Server does not support non-ASCII characters.
Status:	Connected
Status:	Retrieving directory listing...
Command:	CWD /public_html
Response:	250 OK. Current directory is /public_html
Command:	PWD
Response:	257 "/public_html" is your current location
Command:	TYPE I
Response:	200 TYPE is now 8-bit binary
Command:	PASV
Response:	227 Entering Passive Mode (XXXXXXXXXX,109,73)
Command:	MLSD
Response:	150 Accepted data connection
Response:	226-Options: -a -l 
Response:	226 56 matches total
Status:	Directory listing successful
Status:	Connecting to XXXXXXXXX...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 2 of 46 allowed.
Response:	220-Local time is now 14:17. Server port: 21.
Response:	220-IPv6 connections are also welcome on this server.
Response:	220 You will be disconnected after 15 minutes of inactivity.
Command:	USER ******** 
Response:	331 User ********  OK. Password required
Command:	PASS ********
Response:	230 OK. Current restricted directory is /
Status:	Server does not support non-ASCII characters.
Status:	Connected
Status:	Starting download of /public_html/index.php
Command:	CWD /public_html
Response:	250 OK. Current directory is /public_html
Command:	TYPE A
Response:	200 TYPE is now 8-bit binary
Command:	PASV
Response:	227 Entering Passive Mode (XXXXXXXXX,109,16)
Command:	RETR index.php
Response:	150-Accepted data connection
Response:	150 6.0 kbytes to download
Response:	226-File successfully transferred
Response:	226 0.000 seconds (measured here), 51.69 Mbytes per second
Status:	File transfer successful, transferred 6,280 bytes in 1 second
Quote:
Originally Posted by MxxCon
In notepad++ go to "View" menu, "Show Symbol", "Show end of Line". See what kind of characters do you have in your files.
  1. For the UNIX original PHP files it ends with: LF (see screenshot attachment: BEFORE)
  2. For the same PHP file downloaded from my server by FlashFXP is ends with: CR CR LF (see screenshot attachment: AFTER)
Attached Images
File Type: jpg before.jpg (80.0 KB, 4 views)
File Type: jpg after.jpg (48.9 KB, 4 views)
__________________
My System Info:

App: FlashFXP 4.4.3 (build 2029) [registered]
OS: WinXP Pro
Router: Linksys WRT54G build 5
Firewall: COMODO
Anti-Virus: AVAST
Network: Broadband
ISP: cox.net

Last edited by DJAndre; 12-19-2013 at 03:25 PM.
DJAndre is offline  
Closed Thread

Tags
download, flashfxp, ftp, set, upload


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:19 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)