Skip to main content

upload_file

Uploads a file to a remote location and returns the remote URI.

def upload_file(
fp: Path,
verify: bool = True,
fname: str | None = None
) - > Tuple[str, str]

Uploads a file to a remote location and returns the remote URI.

Parameters

NameTypeDescription
fpPathThe file path to upload.
verifybool = TrueWhether to verify the certificate for HTTPS requests.
fname`strNone` = None

Returns

TypeDescription
Tuple[str, str]Tuple of (MD5 digest hex string, remote native URL).