Filezilla and automatic uploading on save.

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
BRoehling
500 Command not understood
Posts: 3
Joined: 2019-02-06 21:21
First name: Benjamin
Last name: Röhling

Filezilla and automatic uploading on save.

#1 Post by BRoehling » 2019-02-06 21:26

Greetings,

it's 2019 and I ask you why there is no such feature, as uploading a file automatically when I press ctrl+s in my editing program that has opened a file from within filezilla?

When filezilla compares the modifciation date of the file, it should know that the modified file is newer than the original file.

Does Windows write the modification date after the buffer (cache) to write that file is empty? Then it would be safe to auto-upload saved files with the modificated date method without prompting for upload, first, in filezilla client.

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#2 Post by botg » 2019-02-07 09:20

Does Windows write the modification date after the buffer (cache) to write that file is empty? Then it would be safe to auto-upload saved files with the modificated date method without prompting for upload, first, in filezilla client.
Yes, Windows changes the modification date, when writing to a file, but that is not safe. It cannot be used to detect when a program has finished writing to a file. Uploading at the wrong time can result in a corrupted file on the server and in some cases even prevent the local editor from finish writing to the file.

BRoehling
500 Command not understood
Posts: 3
Joined: 2019-02-06 21:21
First name: Benjamin
Last name: Röhling

Re: Filezilla and automatic uploading on save.

#3 Post by BRoehling » 2019-02-07 13:11

See here, I read it and with proper implementation it's possible. :D

https://docs.microsoft.com/en-us/window ... -writefile

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#4 Post by botg » 2019-02-07 14:23

No it isn't.

BRoehling
500 Command not understood
Posts: 3
Joined: 2019-02-06 21:21
First name: Benjamin
Last name: Röhling

Re: Filezilla and automatic uploading on save.

#5 Post by BRoehling » 2019-02-07 19:11

I changed the FTP Program. This takes too long. Bye

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#6 Post by botg » 2019-02-07 21:17

Bye bye to you and your data you'll eventually lose.

funtastic
500 Command not understood
Posts: 3
Joined: 2009-03-29 12:09
First name: Herm
Last name: Herm

Re: Filezilla and automatic uploading on save.

#7 Post by funtastic » 2021-06-10 11:36

Hi,
I also have to say that this attitude is really annoying.
I really respect that you don't want to corrupt files and set actual behavior as default.
But you should have noticed how many people complain about it.
So why don't offer a setting that can be activated by the user on his own risk that allows an automatic upload after saving after a configurable delay ?

This way you would be on the safe side and can stay with your nerd dogmas and on the other hand everybody who is happy with a 99,99999% solution could use the different configuration.

Herm

russo1
500 Command not understood
Posts: 2
Joined: 2022-10-26 19:51
First name: Junior
Last name: Silva

Re: Filezilla and automatic uploading on save.

#8 Post by russo1 » 2022-10-26 19:52

it's 2022 and I ask you why there is no such feature, as uploading a file automatically when I press ctrl+s in my editing program that has opened a file from within filezilla?

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#9 Post by botg » 2022-10-26 21:48

Just not possible on Windows.

Artis
500 Command not understood
Posts: 2
Joined: 2022-10-28 13:36
First name: Artis
Last name: Zel

Re: Filezilla and automatic uploading on save.

#10 Post by Artis » 2022-10-28 13:45

Due to my account being just registered, I cannot name the solution I'm using, but I guarantee there's an SFTP solution that does exactly the thing you're saying on windows is not possible.

Let me clarify.

There's a windows program which can connect to SFTP, double click to edit and ctrl + s to save and upload.

Like I get to see the changes I made, live in about 1 second.

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#11 Post by botg » 2022-10-28 14:01

That other program is playing with your data. Eventually it'll corrupt both your local and remote copy.

Artis
500 Command not understood
Posts: 2
Joined: 2022-10-28 13:36
First name: Artis
Last name: Zel

Re: Filezilla and automatic uploading on save.

#12 Post by Artis » 2022-10-28 15:01

Not quite. It creates "working copies" of what I am doing based on time (every N minute) and based on event (ctrl+s). The latter uploads to server, given I opened the file from a server.

So, the sequence is:
1) connect to SFTP
2) open file (FTP download)
3) make changes
4) press save
4.1) write on disk is initiated
4.2) upload (only after full write, FTP upload happens)

There's no magical "in-between" / open-to-corruption moment in time for the file to get all messed-up. I've been using this solution for about 4 years. The only problem I had was if the internet disappears in between the transfer, then (given upload was initiated) it saves empty file on server.., but I can't see how it's the programs' fault.

Overall - there is a solution on Windows machine and it works. No corrupt files so far. 4 years and counting.

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla and automatic uploading on save.

#13 Post by botg » 2022-10-28 17:54

Here is the point: There is no way to detect what a "full write" is.

russo1
500 Command not understood
Posts: 2
Joined: 2022-10-26 19:51
First name: Junior
Last name: Silva

Re: Filezilla and automatic uploading on save.

#14 Post by russo1 » 2022-11-03 23:27

Artis wrote:
2022-10-28 13:45
Due to my account being just registered, I cannot name the solution I'm using, but I guarantee there's an SFTP solution that does exactly the thing you're saying on windows is not possible.

Let me clarify.

There's a windows program which can connect to SFTP, double click to edit and ctrl + s to save and upload.

Like I get to see the changes I made, live in about 1 second.
I also use this other program that you mentioned, and in fact the file saves without any error when clicking on ctrl+s, I have already saved several files and had no problem

but I like to use filezilla because of the interface, and this feature is lacking in it..

sitte
500 Command not understood
Posts: 1
Joined: 2023-01-03 16:44
First name: Bartosz
Last name: Machnik
Location: Lublin Poland

Re: Filezilla and automatic uploading on save.

#15 Post by sitte » 2023-01-03 16:53

Is it possible to:
  • when save is detected check filesize
  • after 0.2s check filesize
  • after 0.4s check filesize
  • ...
  • if filesize is not changeing in last 3 checks save file on ftp server
?

Am I not allowed to mention other program name? ;) I'm using if for years and I'm editing files directly on ftp servers (few hours a day, for about 10 years) and I think I never had problem with corrupted file.

I'm migrating to Filezilla and I have to admit that ftp works much better on FileZilla. Only lack is that every save I have to go back to ftp client ant click yes. It's quite inconvenient. Just consider changing your approach, please.

Locked