Sign in to follow this  
Followers 0
chirimbol

[SOLVED] FTP Upload random work.

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



I have changed to somethinh like that :

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

And I can check if the put succeed, if not i make another attempt

But I can't explain why I have so many fails.

Share this post


Link to post
Share on other sites

Solved now, Upgrade my system (XP) with SP3 en IE8 (was running IE7), and no more upload fail.

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