Your best friend for file transfer.

Fetch application logoFetch

Line Ending ^M appears in vi after uploading PHP files from OSX Snow Leopard (4 posts)

  • Started 12 years ago by ariestav
  • Latest reply 12 years ago from Jim Matthews
  • ariestav Member

    Hi There,

    I'm not sure why, but I think Fetch is the culprit in this issue because other FTP programs are not doing this when I perform the same actions.

    Basically, I am uploading a PHP file via FTP (not SFTP) to my web server. Sometimes, I want to use vi to edit the php file once on the server. When open up the file, I see the ^M line ending everywhere. When I do the same action via Coda which has it's own FTP publishing mechanism, and then open the file via vi on the server, the ^M line ending is not there.

    I have searched through the Fetch help and on this form to understand the issue, and have tweaked settings as best as possible. As of now my settings, that pertain to uploading, are as following:

    1. Use passive mode transfers (checked)
    2. Default upload format: Automatic (and I have tried Text)
    3. Download -> Text file line endings: Mac OSX and UNIX
    4. Use text mode transfers (checked)

    Please help. I need to get this resolved asap. I have upgraded to the latest version 5.7.

    Thank you!

    Posted 12 years ago #

  • Jim Matthews Administrator

    Try setting the upload format to Binary; do you see the ^M (carriage return) characters then?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 12 years ago #

  • ariestav Member

    They are no not showing up if I use Binary. That's odd, because I've never changed it from Automatic. Is there something up with 5.7 that is causing this? Or is it a preference somewhere that needs to be reset?

    Thanks!

    Posted 12 years ago #

  • Jim Matthews Administrator

    It's hard to say without more information. If you'd like to investigate further, please send an email to bugs@fetchsoftworks.com and include a zipped copy of the PHP file.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 12 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.