FTP upload on background change?

English support forum

Moderators: Hacker, petermad, Stefan2, white

ezuk
Junior Member
Junior Member
Posts: 11
Joined: 2005-08-02, 09:03 UTC

FTP upload on background change?

Post by *ezuk »

Hi,

This topic was last discussed around 2005. Has anything changed since?

I'm basically looking for functionality like FAR or WinSCP: Modify file in background, and have TC auto-upload it back to FTP.

I know there was a problem with tmp file handling etc, but if FAR and WinSCP can do it, I have no doubt TC can do it too... right?
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

The author is against that improvement due to not having a defined time to delete the temp-file that TC downloads.

Which makes FTP File editing thru TC nearly unusuable for me. As the Editors I would use, EmEditor or CodeLobster PHP are "Tab-Aware" Editors, and I am not going to close the Editor everytime I make a change - so that TC will recognize that change.

See FTP Editing online Files (Improvement).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe you can use a different editor just for F4? The problem is that Windows doesn't report a process number when the file is passed to an already running editor, so TC cannot know when that editor is closed.
Author of Total Commander
https://www.ghisler.com
cos
Junior Member
Junior Member
Posts: 21
Joined: 2007-10-03, 06:37 UTC

Post by *cos »

I still don't understand why this feature is SUCH an issue to implement.
winscp, connects to a normal FTP, and IS ABLE to "edit" the file in real time.

All you have to do is just overwrite the file online SILENTLY once it's saved (track the date/time the file was last changed, or such)

ALL we need is the ability to click the file, hit F4, edit with whatever software is specified by us (notepad2, notepad++) and upon save, it overwrites silently the file online. DONE.

Edit:
i tested so many other ftp capable shell programs like Winscp, Explorer2 (can't remember all, used alternativeto.net to find them) and all work as expected.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Did you test when they delete the edited file? This is the biggest unsolved problem. Auto-uploading when the file changes would be easy to add, but finding out when the user stops editing is impossible with multiple document editors.
Author of Total Commander
https://www.ghisler.com
cos
Junior Member
Junior Member
Posts: 21
Joined: 2007-10-03, 06:37 UTC

Post by *cos »

ghisler(Author) wrote:Did you test when they delete the edited file? This is the biggest unsolved problem. Auto-uploading when the file changes would be easy to add, but finding out when the user stops editing is impossible with multiple document editors.

who will delete the edited file?
i am not sure the question is understood.

Regarding the file stops editing:
- every time a user saves the file (if it's multi document, or single document editor, he only saves one instance at the time), once saved, it's SILENTLY SAVED online too (no popups, no nothing)
- there is no editing for user monitoring, only an "open file + save" monitoring
- you should not care when he stops editing, when the file get's saved again, and if the connection timed out, silently you reconnect and save it.
- basically, the user will never see that the connection timed out. Now you are killing me/us with popups: Connection interrupted, Reconnect? (99.999% == YES).



i am no real developer, i am web developer, but i can give you an example:
- a synch tool like Syncplicty (totally recommended), it does not care with what editor, what is the client that edits the file. It only checks (with some file hooks as it has been explained to me) if the file was changed or not.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

- there is no editing for user monitoring, only an "open file + save" monitoring
I understand that - but then the temporary file would never be deleted, so the TEMP folder would grow a lot over time...
Author of Total Commander
https://www.ghisler.com
cos
Junior Member
Junior Member
Posts: 21
Joined: 2007-10-03, 06:37 UTC

Post by *cos »

i could live with that :))

(i use CCLEANER almost only daily basis)

make it an option, like with a checkbox, or something, something that people need to enable and understand and done.

ps: how does winscp handle this? since it does this very good, probably it leaves the temp file as you say too, but, it's compromise i can and probably most users live with
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I'd rather the files weren't stored in the temp folder anyways. It could be end-user configurable.
So that they are stored in:
$USER_Defined_FTP_FOLDER$\hostname.com\location\of\file\on\ftp\server
e.g.
F:\TC_FTP_SERVERS\myhost.com\templates\beez\css\*.*
ieonly.css
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

One ceaned---

Post by *Clo »

2HolgerK

[mod]• “belly99” 's craps are removed and this account disabled. Thanks for the info !
- I'll look for the other ASAP.
Clo, moderator[/mod]
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
hellysium
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-16, 07:35 UTC

Let's sum it up

Post by *hellysium »

What we need is:

1. Define custom editor for remote editing (it's possible now)
2. Define local temporal storage folder for edited files. If this is not set, then default /temp/ is used.

NO NEED to delete the temporal files each time the file is closed. Anyway we use other software to clean our system up.

THEN:

1. Open remote file with F4 in custom editor
2. Edit & Save file
3. File is saved in the background

It would be so great to have this feature implemented!

Can this be done in final version 8 ?

Thanks!
cos
Junior Member
Junior Member
Posts: 21
Joined: 2007-10-03, 06:37 UTC

Post by *cos »

i doubt it

this was requested toooo many times, noone cares about this

I am a webdeveloper, i use this feature at least 100 times / day, yes Ghisler & Co do not want to make us happy and add this feature.

What i also asked several times, not to shot the "Connection, lost, reconnect? Yes/No" YES YES YES, that is why i still use this panel, just do it silently and be over with it.
Yet, this feature seems also too complicated to code.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I haven't found an easy way yet to add this.
Author of Total Commander
https://www.ghisler.com
cos
Junior Member
Junior Member
Posts: 21
Joined: 2007-10-03, 06:37 UTC

Post by *cos »

ghisler(Author) wrote:Sorry, I haven't found an easy way yet to add this.
no one said that programming is easy :)

don't take it personally, not intended, i appreciate all the hard work, and total commander is why i am not on a Mac already.
But editing hundreds of files online, doing maintenance it's veeery annoying to work as it currently works.

- connection lost?
- reconnect silently once panel gets focus (this i think is SUPER easy to implement)

- edit file?
- once save, upload it silently (500ms seconds after save)
- do not care about the cache, really, do not, i will clear it.
(people who do dev, are pretty tech savy they know how to clear the temp folder)
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I've been using BitKinex and WinSCP (although it seems buggy). EmFTP is missing a few too many features, and I haven't tried FileZilla yet.

Although, All of them support remote file-editing, save and silent-upload of modified file, without the need of closing your editor.

I've also been editing right in CPANEL with the new-ish javascript (code-highlighted) editor in the browser.


Unfortunately, it doesn't seem like any of them will save the "temp file" to a relative path, thus if you are editing 2 different files that have the same name - you will wind up overwriting the local "temp" copy. Which means you really can't edit 2 similiarly named files at the same time.
Post Reply