DownloadFile

Function DownloadFile 

Source
pub async fn DownloadFile(
    url: String,
    destination: String,
) -> Result<DownloadResultDTO, String>
Expand description

Command: Download File

Downloads any file from a URL. Delegates to Air’s download service.

§Arguments

  • app_handle - Tauri application handle
  • url - URL to download from
  • destination - Local destination path

§Returns

DownloadResultDTO with download status