I was having tons of trouble getting blat to work, and also couldn't get the dllcall with FTP to work. So I made my own workaround with the built in windows FTP client. I tested it on 32bit XP, someone test if it works on vista?
Code:
#notrayicon
username=;put your Autohotkey.net username here
password=;put your Autohotkey.net password here
DetectHiddenWindows, on
run ftp.exe
winwait, C:\WINDOWS\system32\ftp.exe
Winhide, C:\WINDOWS\system32\ftp.exe
controlsend,, open autohotkey.net{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, %username%{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, %password%{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, append C:\test.txt test.txt{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, bye{return}, C:\WINDOWS\system32\ftp.exe
obviously you need to enter your username and password for Autohotkey.net, it would also work for any other FTP server if you changed autohotkey.net to whatever server you wanted to use.
it will upload C:\test.txt to the default folder of your AHK.net account as test.txt.