NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

File doesn't save when loaded through an FTP profile that is not currently active

Open mjrpes opened this issue 10 years ago • 4 comments

I have NppFTP (0.26.1 Unicode) set up with multiple FTP profiles. If I open a file in an FTP session, edit it (without saving), and then I open a FTP session from a different profile, when I go to save the file from the first FTP session (currently disconnected) it saves without error. However, it only saves locally to a temp file and does not upload the new file to the first FTP profile.

This is a problem because if the user is multi-tasking quickly he may not realize the file has not be saved remotely. He is deceived because the UI suggests by all appearances that the file has been saved successfully.

It would be helpful if NppFTP, at a minimum, prompted the user with a warning that the file has only been saved local (not remotely), and the user must connection to the corresponding FTP session to complete the upload.

Even better, would be to somehow do things in the background so that the upload can complete automatically. Either by changing the current FTP session so it can complete, or creating a hidden FTP session to allow the upload to complete just for that file.

This second method is how PSPad Editor's built-in FTP manager does it.

mjrpes avatar Mar 13 '15 18:03 mjrpes

+1 I've fallen trap to this many times.

justincy avatar May 14 '15 16:05 justincy

Related to #24

justincy avatar May 14 '15 16:05 justincy

+1 for this. It's a major limitation and has meant all my colleagues avoiding NppFTP.

pstanley99 avatar Sep 11 '15 16:09 pstanley99

My PR should fix this

https://github.com/ashkulz/NppFTP/pull/225

andymule avatar Jul 23 '18 17:07 andymule