Hi,
I’m trying to make it possible to download the files from the published folder but I can’t get it to work. When the user are clicking on the link nothing happens. If I use the New-UDLink but the New-UDList are more “clean”.
Here is the code;
$Docs = Get-ChildItem -Path D:\Documents\Ex | select-object -ExpandProperty name
New-UDCard -Title 'Ladda ner' -Content {
New-UDList -Content {
foreach ($Doc in $Docs) {
New-UDListItem -Label "$Doc" -OnClick {
Invoke-WebRequest "https://xxx/doc/ex/$Doc"
}
}
}
}
Product: PowerShell Universal
Version: 1.4.6