Skip to main content

upload_file

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

@syncify
async 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 local file system path of the file to be uploaded.
verifybool = TrueWhether to verify the SSL certificate for HTTPS requests during the upload process.
fname`strNone` = None

Returns​

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