Sign in to follow this  
Followers 0
ulosok

FTP - problem with uploading

2 posts in this topic

#1 ·  Posted (edited)

Hello, I am Polish so I have little problem with spelling words in English

I have a problem with this script:

#Include <FTP.au3 >

$server = 'server.pl'
$username = 'username'
$pass = 'haslo'
        $Hand = _FTP_Open('MyFtp')
        $hSession =  _FTP_Connect($Hand, $server, $username, $pass)
       
        If @error Then
        TrayTip("Error", "Connection Failed/Check Firewall",5)
Else
        TrayTip("Connected", "Connection via FTP was successful.", 5)
EndIf
_Ftp_PutFile($Hand, @DesktopDir & "\AutoIt\GDIPlus_Image1.jpg", '\hh.jpg')

If @error Then
   TrayTip("Uploaded", "No.", 5)
Else
        TrayTip("Uploaded", "Yes.", 5)
EndIf
_FTP_Close($Hand)

Do not send the file, not even connected to the FTP (writes)

Spr. Several times this page and the file is not: /

Why?

Edited by ulosok

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0