Jump to content

_FTP_ProgressUpload uploads 0 byte length files

Recommended Posts



Using _FTP_ProgressUpload to upload a number of files to the server.
The script is based closely on example1 script from the help file and all seem to work and no errors are returned.
But the files end up being 0 bytes in length.
I believe same script worked with Autoit v. 3.0.100

What could be wrong here ?


Func UploaderFil()
    Local $fuFunctionToCall = _UpdateProgress
    ProgressOn("Uploader....", $s_RemoteFile)
    $iResultat = _FTP_ProgressUpload($Conn, $s_LocalFile, $s_RemoteFile, $fuFunctionToCall)
    $tCur = _Date_Time_GetSystemTime()
    If $iResultat = 0 Then
        $i_Fejl += 1
        MsgBox(48, "Fejl", "Fejl ved FTP-upload !", 5)
        IniWrite($Inifilen, "Setup", "SidsteStatus - " & $FilNum, "FEJL - FTP upload - den : " & _Date_Time_SystemTimeToDateTimeStr($tCur, 1))
        IniWrite($Inifilen, "Setup", "SidsteStatus - " & $FilNum, "OK - FTP upload - den : " & _Date_Time_SystemTimeToDateTimeStr($tCur, 1))
EndFunc   ;==>UploaderFil


Share this post

Link to post
Share on other sites

Sorry - my bad.


There was an error in the configuration file  :-(



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

  • Similar Content

    • rootx
      By rootx

      $FTPOpen = _FTP_Open($FTPName) ConsoleWrite("Status + "&$FTPOpen&@CRLF) ConsoleWrite("Wait Connection to " & $FTPServer & "..."&@LF) $FTPConnect = _FTP_Connect($FTPOpen, $FTPServer, $User, $Pass, $iPassive, $iPort) ConsoleWrite($FTPOpen & " + " & $FTPServer & " + " & $User & " + " & $Pass & @LF) $FTPUpload = _FTP_DirPutContents($FTPConnect, $InstallFolder, $FTPlocation, 1, 0) ConsoleWrite($FTPConnect & " + From " & $InstallFolder & " + To " & $FTPlocation & @LF) Example() _FTP_Close($FTPOpen) I would like to add a progress bar in my FTP upload.
      Sorry, I had read the help but I could not make it work, could someone help me please?

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.