1950 posts Do the Needful
  • Has been a member for 4-5 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Has attended an Envato Live event
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Contributed a Blog Post
  • Beta Tester
+6 more
JamiGibbs says

It seems to happen randomly when I upload a file via FTP (Filezilla) and then transfer it back again to my computer later, it adds line breaks after every line of code. Drives me nuts looking at the code this way.

I thought perhaps it was because of a change in computer environments or opening the file in a different program than it was originally created but I haven’t changed anything this time around. The file was created with Notepad++ and reopened with Notepad++ yet the FTP still adds stinking line breaks after each line of code.

Anyone have any idea why it’s doing that and, more importantly, how I can fix it?

1950 posts Do the Needful
  • Has been a member for 4-5 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Has attended an Envato Live event
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Contributed a Blog Post
  • Beta Tester
+6 more
JamiGibbs says

I just tried changing the transfer type from Auto to ASCII and Binary. The Binary transfer type worked (ASCII still transferred the files with line breaks).

238 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
ewizz says

Windows use a CR/LF for the end of a line and Linux uses just a LF. The extra lines are added when you upload a text file from a Windows computer to a Linux computer(server probably) in binary mode, and download it back to the Windows computer in ASCII mode.

1950 posts Do the Needful
  • Has been a member for 4-5 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Has attended an Envato Live event
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Contributed a Blog Post
  • Beta Tester
+6 more
JamiGibbs says

Right on. Thanks for the head’s up on that, ewizz.

238 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
ewizz says

np, if you use windows then download filezilla, it will automatically detect file type and transfer it correctly :)

by
by
by
by
by
by