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 02-12-2012, 08:56 AM   #1
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default FlashFXP generates blank lines ?

Hello,

This problem exists long time ago and it causes me a lot of headaches.

I found that FlashFXP generates blank lines at (css) files and (php) files.

When I download files from my server and open them, I just see blank lines !

example:



Any help ?!

Thanks
Attached Images
File Type: gif blank.gif (11.1 KB, 34 views)
rashe18 is offline  
Old 02-12-2012, 03:59 PM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

are you transferring those files as binary or ASCII?
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 02-12-2012, 04:18 PM   #3
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

Ascii .......
rashe18 is offline  
Old 02-12-2012, 06:15 PM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Are you downloading the files from a SFTP or FTP server?

What is the server software? Is it a windows based server?
bigstar is offline  
Old 02-13-2012, 04:24 AM   #5
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

Quote:
Originally Posted by bigstar View Post
Are you downloading the files from a SFTP or FTP server?

What is the server software? Is it a windows based server?
Connection type FTP
CentOS 4.6-32
rashe18 is offline  
Old 02-13-2012, 01:49 PM   #6
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Any idea what FTP server software is being used?

Typically this can be determined by the first few lines of text in the session window.

I suspect the ftp server software is configured to treat ASCII transfers as BINARY, so even though FlashFXP thinks you are transferring the files in ASCII mode the FTP server is treating them as BINARY.
bigstar is offline  
Old 02-14-2012, 06:30 AM   #7
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

FTP server software used in cpanel is Pure-FTPD and pro-FTPD. Currently we have Pure-FTPD running in our server. We will have a check into this and update you soon.
rashe18 is offline  
Old 02-15-2012, 08:58 AM   #8
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

Here I bring my server admin response:

====================================

Hello,

In ASCII the transferred data is considered to contain only ASCII formatted text. The receiver have to translate the format of the received text,only then it would be readable by his OS. For instance in windows system, pressing the "enter" key inserts two characters in an ASCII text document - a carriage return (which places the cursor at the beginning of the line) and a line feed (which places the cursor on the line below the current one). On UNIX systems, only a line feed is used. ASCII text formatted for use on UNIX systems does not display properly when viewed on a Windows system and vice versa.

In Binary transfer file is transfered as binary data (0 and 1). In binary mode file is transmitted as raw formats ie it is transfered in its exact form.
It is better to use ASCII for transferring .txt, htm, html, css,htm, html, css. If a file containinf binary data is transfered in ASCII then chances of file to get corrupted are high.

In most of the ftp clients we have option to change the transfer modes. I hope you are satisfied with this reply.

Regards,
Sean
Tech Support

====================================

Please tell me if you need more details.

Thanks
rashe18 is offline  
Old 02-15-2012, 05:36 PM   #9
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Yes that is correct.. If you upload a DOS formatted text file in ASCII mode to a UNIX based server it will automatically convert the DOS text format to UNIX text format.

If you then download the same file using ASCII mode it will convert text file which is now UNIX formatted back to a DOS formatted text file.

If the file is at any point downloaded in BINARY mode then it gets remains UNIX formatted, depending on your text editor it may handle UNIX formatted text just fine, such as Ultra Edit or my personal favorite NotePad++

Perhaps at some point the file format became messed up?

NotePad++ can convert the file from DOS to UNIX or UNIX to DOS. I would convert the file to DOS formatted and then upload it to your server and see if that resolve it.

If it doesn't resolve it, then I would re-evaluate whether or not the FTP server is actually using ASCII mode. There are some FTP servers that will use BINARY mode even when ASCII is selected.
bigstar is offline  
Old 02-15-2012, 06:22 PM   #10
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

Thanks for your response.

Please tell me what to do.

I use:

FlashFXP
Notepad ++

Please tell me if there some setting I should change at the software I am using.

If there something related to the server which should be changed so please tell me so I can tell my server admin what to do.

Thanks again.
rashe18 is offline  
Old 02-15-2012, 06:25 PM   #11
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

I want to add some details,

This problem didn't occur every time I download/upload files. It occurs sometimes but it still annoying.
rashe18 is offline  
Old 02-17-2012, 10:58 AM   #12
rashe18
Junior Member
FlashFXP Registered User
 
Join Date: Sep 2008
Posts: 21
Default

Any help ?
rashe18 is offline  
Old 02-17-2012, 11:26 AM   #13
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Notepad++ will indicate the text file format on the status-bar.




To convert Dos\Windows to UNIX do the following.



The file is UNIX formatted.



bigstar is offline  
Old 02-22-2012, 09:44 AM   #14
amk786
Junior Member
 
Join Date: Feb 2012
Posts: 11
Default

Thanks bigstar .... good to know that we can use Notepad ++ to convert Dos\Windows to UNIX format... really cool
amk786 is offline  
Closed Thread

Tags
blank, download, files, flashfxp, lines, spaces

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 07:09 AM.

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