pub async fn queue_upload(
bucket_name: String,
bucket_region: Option<String>,
key: String,
local_path: String,
total_bytes: u64,
expected_profile_id: String,
app_handle: AppHandle,
profile_state: State<'_, ProfileState>,
s3_state: State<'_, S3State>,
transfer_state: State<'_, TransferState>,
) -> Result<String>