DocsFTP Clientftp_upload

ftp_upload

Ftp Upload

Upload a local file to an FTP server. Supports authenticated FTP, FTPS (FTP over SSL/TLS), proxy configuration, and Tor anonymization. Specify the FTP destination URL and local file path.

Usage Example

123456789101112
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.ftp_upload(
url="https://example.com",
file_path="value"
)

Parameters

Required

urlstringrequired

FTP URL where the file should be uploaded (e.g., 'ftp://ftp.example.com/uploads/file.txt').

file_pathstringrequired

Local path of the file to upload.

Optional

usernamestring

FTP username. Default: anonymous

passwordstring

FTP password. Default: empty

proxy_typeenum
httphttpssocks4socks5+1 more

Type of proxy server.

proxy_hoststring

Proxy server hostname or IP address.

proxy_portstring

Proxy server port number.

proxy_usernamestring

Username for proxy authentication.

proxy_passwordstring

Password for proxy authentication.

use_torboolean

Use built-in Tor proxy. Default: false

timeoutstring

Timeout in milliseconds. Default: 30000

use_sslboolean

Use FTPS (FTP over SSL/TLS). Default: false

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}