pub async fn upload_file_to_provider(
upload_url: &str,
path: &str,
field_name: &str,
) -> Result<String, AiLibError>
Expand description
Upload a local file to the provider’s upload endpoint using multipart/form-data.
This function is conservative: it only attempts an upload when an upload_url
is provided.
Returns the provider-hosted file URL on success.