Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Thanks. Once it happens can you look up temporary local file that contains the text from editor and check if that file is already corrupted? You will find the file in subdirectory of temp directory configured in preferences. By default it is system temporary directory.
bjd223

Okay I am back on the machine in question

I am using FTP protocol with the built in editor.

WinSCP is 4.0.7 (Build 370)
martin

Re: Internal Editor not saving files properly

What protocol are you using? What version do you use? The latest stable or the latest beta?
bjd223

Internal Editor not saving files properly

Hello,

I do a lot of editing of PHP files from the web, and I must say winSCP has one of the best live editors I have seen yet.

Anyway Sometimes when I save a PHP (or HTML for that matter), I get some extra overlapping at the end of my files.

For example if my code ends with

[...]
<p>blah blah blah</p>

<?php

some php here

?>

<span>more html whatever</span>
<br>
</body>
</html>

At the end of the file I will get a random amount of the file duplicated below it like:

[...]
<p>blah blah blah</p>

<?php

some php here

?>

<span>more html whatever</span>
<br>
</body>
</html>
<span>more html whatever</span>
<br>
</body>
</html>


It never seems to be a set amount of the file duplicated at the bottom, but it is always about 4-6 lines. It also never looses code, just adds extra in.

It is a very strange problem and only happens every couple of days or weeks.

I am not infront of my computer, but I have the latest version of winSCP, and have not really changed any of the settings, except some of the timeout ones.

-Brian