Wednesday, November 30, 2016

Newlines got changed when downloading/uploading files using FTP client such as FileZilla

If your source code formatting is destroyed after FTP download or upload, it's probably because your FTP client's transfer mode is currently set to ASCII. Usually, line breaks are removed completely or added excessively to the text (source) files.

Try to switch your transfer mode to Binary. It should fix the problem. In FileZilla, this is located under Transfer->Transfer Type menu. You can choose default transfer type in FileZilla->Edit->Settings...


No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...