Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

FTP Class + Library [FTP as easy as 1-2-3]


  • Please log in to reply
40 replies to this topic
shajul
  • Members
  • 571 posts
  • Last active: Aug 01 2015 03:45 PM
  • Joined: 15 Sep 2006
@ dylan904:
i do not think wininet supports FTPES. Anyway, MSDN does not mention it does. You may need commercial libraries to do that.
If i've seen further it is by standing on the shoulders of giants

my site | ~shajul | WYSIWYG BBCode Editor

dylan904
  • Members
  • 706 posts
  • Last active: Nov 14 2016 06:17 PM
  • Joined: 18 Jan 2012
honestly idk if one exists, ive done my share of research for sure, but to no avail. i hope something can be done, as extensive security is always a plus.

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Help!
I keep getting
---------------------------
Error!
---------------------------
Error : 12014 - The password was not allowed


---------------------------
OK   
---------------------------
Whenever I try to use this with autohotkey.net. I've double and triple-checked the user/pass, and tried both "user" and "[email protected]" for the username.

This occurs on the ftp1.open() line.

art
  • Members
  • 57 posts
  • Last active: Mar 11 2019 07:48 AM
  • Joined: 23 Sep 2008
hi shajul,

can you please add an option for AutoProxy like VxE did for his function HTTPRequest ?

AutoProxy - This option tells HTTPRequest to use Internet Exlporer's proxy configuration. If your Internet Explorer is not configured to use a proxy, this option has no effect.

Thanks

shajul
  • Members
  • 571 posts
  • Last active: Aug 01 2015 03:45 PM
  • Joined: 15 Sep 2006
Thanks for your interest. But time does not permit me to be more active in AHK development.

I am willing to hand over this project to whoever is willing and able to maintain it better :oops:
If i've seen further it is by standing on the shoulders of giants

my site | ~shajul | WYSIWYG BBCode Editor

gamax92
  • Members
  • 411 posts
  • Last active: Aug 06 2013 05:00 AM
  • Joined: 05 Dec 2010
Hello, I'm having an issue with the library.
I confirmed that the connection was opened, its uploading to the right directory, and thats its creating the files.
But the files all stay 0b and dont upload correctly
I get this error
Error : 12003
200 TYPE is now 8-bit binary
200 PORT command successful
425 Could not open data connection to port 51134: Connection timed out

EDIT: NVM, i needed to use passive mode.

dylan904
  • Members
  • 706 posts
  • Last active: Nov 14 2016 06:17 PM
  • Joined: 18 Jan 2012
I am unable to access my AHK FTP account, so currently am using an alternative host. I was wondering if anyone else was having this problem, I personally asked 3 others and none were able to access ftp.autohotkey.net, as it returns an invalid password. I just didn't know if this was a security issue or what.

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009

I am unable to access my AHK FTP account

Although ahk.net is currently on trouble, I suppose most of us are able to actually log into our respective accounts...

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


Uberi
  • Moderators
  • 1119 posts
  • Last active: May 02 2015 06:05 PM
  • Joined: 23 Aug 2010
Nope, seems to have gone down completely now.

dylan904
  • Members
  • 706 posts
  • Last active: Nov 14 2016 06:17 PM
  • Joined: 18 Jan 2012
Yes, and only from the FTP aspect, you can login within your web browser, but not access any files stored.

Bamaat
  • Members
  • 6 posts
  • Last active: Dec 12 2013 05:07 PM
  • Joined: 05 Dec 2012
Does anyone have a link for the FTP library referenced in this thread? It gives a 404 error. Trying to create an account on Autohotkey.net = Failed to create directory

Thank you


---

Found it I believe.. for those who are looking:
https://github.com/g...ee/master/FTPv2

dean84
  • Members
  • 4 posts
  • Last active:
  • Joined: 16 Feb 2012

Hi,

 

I create a function for FTP upload , but it doesn't work.

I get this error message:

Could not load module/InternetOpen
UploadFile(server,user,psw,dir,file){		
	ftp1 := new FTP()
	ftp1 ? TTip("InternetOpen Success") : Quit("Could not load module/InternetOpen")
	ftp1.Open(server, user, psw) ? TTip("Connected to FTP") : Quit(ftp1.LastError)
	ftp1.SetCurrentDirectory(dir)
	ftp1.InternetWriteFile( file) ? TTip("Upload success!") : Msg(ftp1.LastError)
	ftp1 := ""	
}

 

Somebody know what is the problem?

Thanx

 

 



yosang
  • Members
  • 57 posts
  • Last active: Apr 11 2013 01:18 PM
  • Joined: 28 Nov 2012

I need FTP library to use this, anyone could post the lib here or create a new link?



malcev
  • Members
  • 73 posts
  • Last active: Jan 28 2016 08:05 PM
  • Joined: 19 May 2011
Here it is
https://github.com/g...ee/master/FTPv2
But there is an error in script.
function ftp1.GetFileSize(UploadedFile) shows "-1" if file is bigger than 1gb.

wnltl
  • Members
  • 8 posts
  • Last active: May 09 2013 01:20 PM
  • Joined: 12 Jun 2012

script have been very helpful

Thank you