Topic "problem editing remote files via ftp"

Author Message
willy
[View user's profile]

Joined: 2007-04-27
Posts: 1
LOVE WinSCP! FTP is a great addition.

WinSCP 4b Build 342, FTP protocol, Norton interface. When editing remote text file on ftp server, the temp file returned to the server did not contain lines inserted at top of file. For example, inserting 2 new lines of text at the top of the file never made it back to the file on the server. Instead, the uploaded file would contain duplicates of the last 2 lines. Internal and eternal editor produced same result. Not a problem with sftp editing. Return ftp upload appears to use an APPE command while Filezilla appears to use STOR when doing same function.

#######
LOG
#######
File: "/www/cgi-bin/TestEditFile.txt"
Copying "/www/cgi-bin/TestEditFile.txt" to local directory started.
Ascii transfer mode selected.
Starting download of /www/cgi-bin/TestEditFile.txt
TYPE A
200 TYPE is now ASCII
PORT 192,168,1,15,17,255
200 PORT command successful
RETR TestEditFile.txt
150 Connecting to port 4608
226-File successfully transferred
226 0.000 seconds (measured here), 371.50 Kbytes per second
Download successful
Copying 1 files/directories to remote directory "/www/cgi-bin"
PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: N (102400); CalcS: Yes; Mask:
TM: A; ClAr: No; ExclM(No):
AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt"
Copying "C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt" to remote directory started.
Ascii transfer mode selected.
Starting upload of C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt
TYPE A
200 TYPE is now ASCII
PORT 192,168,1,15,18,0
200 PORT command successful
APPE TestEditFile.txt
150 Connecting to port 4609
226-File successfully transferred
226 0.033 seconds (measured here), 0.82 Kbytes per second
Upload successful
#########################################
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your report. I'll check it.
_________________
Martin Prikryl
Guest




Hello,

same thing here.
Examples:
A text-file on the server, content:
Code:
1
2
3
4
5

Edit the file in the internal or (any) external editor, make the following changes:
Code:
x1
2
3
4
5

After saving the result on the server will be
Code:
1
2
3
4
5
4
5

If you append something to the file, e.g.
Code:
1
2
3
4
5
x
y

the result will be
Code:
1
2
3
4
54
5
x
y
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
This is known issue that has been resolved already. The fix will be included into the next release.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License