How to automatically FTP files that I am editing
Solution 1
If by "autoftp" you mean "update the file on the server whenever I save it" and you're working with code, then I'd recommend the wonderful Notepad++
Solution 2
I use WinSCP for some of its amazing benefits. I connect to my FTP server with WinSCP and let it monitor my local folder /website/public_html
.
Any changes I make in my local folder automatically get uploaded to my FTP server by WinSCP. The feature is called Keep remote directory up to date:
http://winscp.net/eng/docs/task_keep_up_to_date
As for SCSS, I also use it:
I have a script that opens a console window to watch my /website/scss
files and compiles them to /website/public_html/styles/
. WinSCP sees the CSS file has changed (or is new) and automatically uploads it.
Notice: The only downside is you cannot reach your error_log
as that is automatically generated on the server by PHP. To do this you can easily instantiate another WinSCP to connect to your website. Now you have 1 WinSCP monitoring your local folder and 1 WinSCP where you can access your site map.
Solution 3
Notepad++ certainly is wonderful for this particular function and it even saves a cache of the whatever has been accessed and modified from the remote server.
The downside however (for me) is that Notepad++ will not auto-upload preprocessed CSS files like .scss or .less. I tried actually opening the resulting .css files in Notepad++ to mimic the act of editing them, but that still puts an extra step in the process. I have to click over to the tabs and manually save them (after the 'your file as changed prompt').
Currently, after I make changes, I click over to FZ and upload the files manually.
Solution 4
This response is late, but hopefully it will be helpful to those looking to get past Filezilla's "do you want to overwrite" prompt every time a file being edited locally is saved. Unfortunately, the Filezilla developers are staunchly opposed to making this behavior optional. It is a problem for many, especially when working with limited desktop space, since every time the prompt appears, one must expose the hidden filezilla window just to click okay.
Anyway, the answer is WinSCP. It is also free and is so similar to filezilla that I needed no learning to use it immediately.
Cheers!
Solution 5
There is an easier way to do that with NetBeans IDE, there is an option to upload files with FTP or SFTP on save, manually or on Run
- Right click on your project and click Properties
- Click the second category run configuration
- Run As: Choose Remote Website (FTP,SFTP)
- Project Url: put your website live link eg www.example.com
- Upload files: Choose On Save
- Remote Connection > Manage > Add > Connection name (put one) > FTP
Now add your ftp details. Make sure your Initial directory path is correct, (your website path) so you will not accidentally replace any files from other website in the file manager
user1549397
Updated on July 10, 2022Comments
-
user1549397 almost 2 years
I'm trying to figure out how to autoftp with Filezilla. Are there any other programs that do this right off the bat?
-
SomeKittens almost 12 yearsAre you trying to create a FTP mount? What OS?
-
halfer almost 12 yearsDo you want to copy files from FileZilla to a server on a scheduled basis? Or from the server to FileZilla? Or do you want to just do it once e.g. on start up? What platform would you be running this on (Windows, Mac etc)?
-
taz almost 12 yearsIs this a programming question?
-
user1549397 almost 12 yearsnot sure ftp mount is, but I'm just trying to have filezilla automatically upload files that I'm editing, and when saving the files, filezilla just auto uploads them. im in windows 7
-
taz almost 12 yearsWrite a script/program that scans your source directory(s) every x minutes and use an FTP library to upload when changes are detected. I'd be surprised if something like this doesn't already exist, and according to the answer below Notepad++ has this functionality.
-
systemaddict over 7 yearsto flesh out the question a little more as to why this will probably not change: the filezilla admin proposes a two step syncing issue that is dangerously capable of corrupting your data with an autosync feature in pure FTP programs. There are also workarounds in the same filezilla thread post
-
Brian C about 5 yearsFilezilla now (2019) does provide a feature for auto-ftp-ing a file when it is changed. If you right-click the local file, then select "Edit", Filezilla will automatically prompt to FTP the file from then on until you select the "stop editing" checkbox in the dialogue. I just switch to the FileZilla window then press "Y" to proceed without having to use the mouse. The WinSCP solution given in answers is probably the best option though.
-
-
taz almost 12 yearsI'd like to know this also. I see that NPP has an FTP plugin (sourceforge.net/projects/nppftp) but I can't find anything about automatically uploading on save. That would be really useful to me.
-
SomeKittens almost 12 yearsIn the NP++ toolbar, there should be an icon of a folder with a chain on the bottom left. That's the FTP
-
BillyNair about 11 yearsThis is EXACTLY what I came here looking for an answer to... anyone have an easier way to do this yet?
-
JacobRossDev about 11 yearsSince this comment, I have been using WinSCP which allows a user to select files and folders to "watch" for changes. After .SCSS compresses and the modify date changes, WinSCP uploads to the remote server. winscp.net/eng/docs/task_synchronize_full#synchronization_mode
-
BillyNair about 11 yearsJust got it, tested it, STOKED!!
-
Randy Hall about 10 yearsIf you're using N++, I believe crtl-shift-a is "save-all" - might save you the time of saving each.
-
Pacerier over 9 yearsSo with WinSCP why do people even use FileZilla anymore?
-
Chan over 9 yearsHow come it detected the change but not upload everytime?
-
Martin Prikryl about 9 yearsThough note that you can open remote files in WinSCP internal editor or any external editor of your choice directly from the file panel. The file is than automatically uploaded whenever saved. This way, the problem never occurs, even with old FTP server. See Editing/Opening Files and Internal Text Editor.
-
dazzafact over 8 yearsI was waiting for Years for this Feature in FileZilla. Since I read about the Topic and the "problematic" about it - from then i used WinSCP. Better Choise !!
-
Halogen almost 7 yearsNppFTP will in fact do this. And HOW to do it is detailed in this guy's answer: stackoverflow.com/a/19908430/2063246
-
Regular Jo about 6 years
Always perform this action for this file
` --- during this session` would be a pair of nice features. -
reor about 6 yearsI use the options 'Overwrite if different size or source newer', 'Always use this action', 'Apply only to uploads' and then I can just upload the entire directory tree and FileZilla takes care of finding what is changed and only uploads that.
-
Yohanim over 2 yearsWinSCP really good tools. I use it on Windows environment. Whenever you hit save, then it automatically uploaded to server. It is reduces workload. But unfortunate, the mac version is unavailable. Hopefully winscp also support for Mac environment