Back to product page

PutFileAt64 method


Sends a file to the server, appending it at given position.

Type

None

Syntax

  • Basic
object.PutFileAt64[LocalFile], [RemotePath], RemotePosLo, RemotePosHi
The PutFileAt64(object,LocalFile,RemotePath,RemotePosLo,RemotePosHi) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
LocalFileOptional. A Variant value. Full path to filename on your local disk.
RemotePathOptional. A Variant value. Full path to filename where local file will be copied on server.
RemotePosLoRequired. A lower long value for 64 bit integer that specifies the position in remote file at which copying will start.
RemotePosHiRequired. A higher long value for 64 bit integer that specifies the position in remote file at which copying will start.

Remarks

The PutFileAt64 function will copy files from the local computer to the remote server, starting at the given position. During the transfer, the Progress event will be fired several times, depending on your network speed and length of the file. When copying is complete, the Done event will be fired.

If an error occurs during the transfer, the Done event containing the ErrorCode and a description of the error will be fired immediately and the transfer will be aborted. If you want to continue the transfer at a later time, or you want to resend the file, initiate the PutFileAt function again (immediately or after reconnecting, depending on the error that occurred). You can NOT use the Resume property to restart the transfer. Increase the value of the RemotePos argument instead!

Please read help for PutFile to get more general info about downloading a file.

Platforms

Windows