Jump to content

[SOLVED] FTP Upload random work.


Recommended Posts

Hi,

I'm using FTPEx to send a file sometimes it just create the file but with 0 size, and sometimes transfert is OK.

I've tried with differents ftp server and it's the same problem.

Do I have something wrong in my code? Thanks in advance for your help.

#include <FTPEx.au3>
#include <File.au3>

$server = 'myftpserver'
$username = 'user@myftpserver'
$pass = 'xxxxxx'

$Open = _FTP_Open('MyFTP')
$Conn = _FTP_Connect($Open, $server, $username, $pass, 0, 21)

_FTP_FilePut($Conn, 'C:\ftptest1.txt', 'ftptest1.txt', 0x08000000)

$Ftpc = _FTP_Close($Open)
Edited by chirimbol
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...