pub async fn upload_from_file(
    project_id: &str,
    name: &str,
    content_type: &str,
    expires: &DateTime<Utc>,
    file: File,
    retry: &Retry,
    object_service: &Object,
    upload_id: &str
) -> Result<()>
Expand description

Upload an object from a File. The file must be open in read mode and must be clone-able (that is, File::try_clone() must succeed) in order to support retried uploads.