Look at FTPSettings (FTP) help.v4p for help.
I was trying to find a way to automatically (without user input) transfer images to a server. I found a nice little gem, the ftp.exe that apparently is included with windows. With a few creative batch scripts, it makes it possible to make an FTP connection through the shell, which means you can hack something together inside of VVVV!
Unfortunately it also means that there is basically no feedback, so you won’t know if your file is transferred successfully, etc… which is unfortunate and in some cases probably makes this node unusable.
In other words I can’t guarantee that this will work, I’ve done some limited testing and it works on my server, so let me know if it works or not for you. You have to make sure that your ftp.exe file is at c:\windows\system32\ftp.exe otherwise you will need to change the path in the .bat files.
THESE NODES ARE NOT SPREADABLE!!! However it MIGHT be possible to spread them and use mput and mget instead of put and get.
I’m not sure if/when I will work on these again, but it should be fairly easy to dissect what I’ve done if you need special/extended functionality- you just need to make a .bat file to call from shell execute, and then echo to a file the commands you want to run during the ftp connection. Here is a good document detailing the ftp.exe file: http://www.ss64.com/nt/ftp.html
Onward, to uploading images with HTTP Network Post!
FTP.zip (7.5 kB)
Well, it seems that it is pretty stable, I haven’t had any issues yet. Also I found another command line FTP executable called cURL: http://curl.haxx.se/
It seems like cURL provides error codes- which means I might be able to make it so you can tell if there was an error or if the transfer was successful.
hi mate nice to see that module thx , i,ll check it out this week .
I think the default setting for “block until finished” is false, but it probably should be true in most cases (to prevent accidental multiple executions).
The whole thing didn’t work for us…
Is there any possibility to get more precise demopatches, or more Information on the whole matter? If the whole FTP thing would work it would save us a lot of time…
I’m kind of desperate here… We also tried the whole HTTP (network post/get) thing, but also as in all threads concerning this matter, the conversation breaks up after a few replies.
Is the HTTP module just to buggy to get the job done?
If I still can’t get the whole FTP communication to work, would you recommend to upload files via an external Program (processing / Max / PD)? Which one? Is there anyone out there who has ever done that?
Thanks in advance!
I used curl for a project once to FTP images and I managed to get feedback by pushing the output to a log file and reading the log file back in to vvvv to check what it returned. I can prob find the module some where but I’m about to leave the office for a couple of days on work and won’t get a chance to hunt it down till the weekend.