native

ezhttp_ftp_upload2

Syntax

native EzHttpRequest:ezhttp_ftp_upload2(
    const uri[] = "",
    const local_file[] = "",
    const on_complete[] = "",
    EzHttpFtpSecurity:security = EZH_UNSECURE,
    EzHttpOptions:options_id = EzHttpOptions:0
);

Description

Uploads a file to a remote server using FTP by URI.

Parameters

uri The URI to upload to.
local_file The local file to upload.
on_complete The function to call when the upload is complete.
Signature: public on_complete(EzHttpRequest:request_id)
security Member of EzHttpFtpSecurity. The security strategy use for the FTP connection.
Passing any other value raises a native error.
options_id The options to use for the request.

Return

The request handle.