pub async fn datasets_upload_file(
        &self,
        file_name: impl ToString,
        content_length: u64,
        last_modified_date_utc: Duration,
    ) -> anyhow::Result<FileUploadInfo> {
        let form = multipart::Form::new().text("fileName", file_name.to_string());

        Ok(Self::request_json(
            self.client
                .post(self.join_url(format!(
                    "datasets/upload/file/{}/{}",
                    content_length,
                    last_modified_date_utc.as_secs()
                ))?)
                .multipart(form),
        )
        .await?)
    }
/// Get URL and token to start uploading a data file.
Get URL and token to start uploading a data file.
Get URL and token to start uploading a data file .
pub async fn datasets_upload_file(
        &self,
        file_name: impl ToString,
        content_length: u64,
        last_modified_date_utc: Duration,
    ) -> anyhow::Result<FileUploadInfo> {
        let form = multipart::Form::new().text("fileName", file_name.to_string());
        Ok(Self::request_json(
            self.client
                .post(self.join_url(format!(
                    "datasets/upload/file/{}/{}",
                    content_length,
                    last_modified_date_utc.as_secs()
                ))?)
                .multipart(form),
        )
        .await?)
    }
pub async fn datasets_upload_file ( & self , file_name : impl ToString , content_length : u64 , last_modified_date_utc : Duration , ) -> anyhow :: Result < FileUploadInfo > { let form = multipart :: Form :: new ( ) . text ( " " , file_name . to_string ( ) ) ; Ok ( Self :: request_json ( self . client . post ( self . join_url ( format ! ( " " content_length last_modified_date_utc as_secs ( ) ) ) ? ) . multipart ( form ) , ) . await ? ) }
Get URL and token to start uploading a data file.
Get URL and token to start uploading a data file .
&self
file_name
impl ToString
content_length
u64
last_modified_date_utc
Duration
&self
file_name
impl ToString
content_length
u64
last_modified_date_utc
Duration