I can't edit files directly on the FTP server

English support forum

Moderators: Hacker, petermad, Stefan2, white

m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

I can't edit files directly on the FTP server

Post by *m1000 »

Hi,

When I edit any file on the FTP it's saving edited file on my PC. I did't change anything in settings.
mentat
Junior Member
Junior Member
Posts: 4
Joined: 2013-10-16, 02:07 UTC

Post by *mentat »

FTP wasn't built for online editing and programs that emulate online ftp editing have to piggyback the protocol, which causes all sorts of problems, mostly unsuccessful session reconnections. My advice would be to download the file(s), edit it locally and re-upload it. Old school FTP.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually this is supported now in TC 8.5 beta! If you save a file, TC will automatically re-upload it to the server when it detects the change. You will be asked the first time you edit a file whether you want to enable this or not.
Author of Total Commander
https://www.ghisler.com
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

When I edit .htaccess file on the FTP server it's saving file inside AppData\Local\Temp ... instead on FTP server.

I'm working with Total Comander for 10 years and it always saved edited files on FTP but since yesteday it's saving all files inside AppData\Local\Temp on my PC. Why?
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

m1000 wrote:I'm working with Total Comander for 10 years and it always saved edited files on FTP ...
I don't think so.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC versions previous to the current beta re-upload the file when it is changed and you close the editor.
Author of Total Commander
https://www.ghisler.com
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

So why it's not working? Filezilla works so it's not a server issue.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe your editor never really closes (continues to run in the background in hidden form)?
Author of Total Commander
https://www.ghisler.com
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

When I'm closing editor, the Windows is asking:

Would you save changes in the file
c:\Users\MM\AppData\Local\Temp...\.htaccess

so I click on SAVE, and nothing happens, the following folder is empty:

C:\Users\MM\AppData\Local\Temp\_tc

I use 64-bit total commander.

In the logs I see:

Code: Select all

Copied (2013-10-25 12:17:26) ftp://ftp.....htaccess -> C:\Users\MM\AppData\Local\Temp\_tc\.htaccess 296 bytes
User avatar
petermad
Power Member
Power Member
Posts: 16142
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

TC automatically (8.5 by choice) saves the edited file on the server and deletes the temporary file on the local drive.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

It's working when I run TC as an administrator.
User avatar
petermad
Power Member
Power Member
Posts: 16142
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Is it only .htaccess that this applies to, or can you edit other files whithout a leading dot without running TC as Admin?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

It doesn't work with all files like .php, .html. Filezilla is working without any problems.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try this: Install the latest TC 8.5 beta, then go to menu
Configuration - Options - Viewer/Editor and check the option "Automatically re-upload...".
Author of Total Commander
https://www.ghisler.com
m1000
Junior Member
Junior Member
Posts: 8
Joined: 2013-10-21, 14:06 UTC

Post by *m1000 »

Now it's working. Thanks.
Post Reply