@LinuxGuy@adam do either of you have a completed example of this download button? I’m having issues successfully downloading a file from a button on my dashboard while using the example above.
I’ve attempted the following but haven’t had any success just yet.
I also tried just using the RequestedPath name + the file name for the href attribute (as in “/PublishedFolder/File1.txt”)
The Start-UDDownload cmdlet works for me, but as Adam mentioned, that only supports text files. I’m aiming to ultimately have a button that the user clicks and it start a RDP session.
The HREF needs to be the URL and not the path. You also can’t use the element within the button. You may be able to style the A tag to look like a button but I would have to play around with it.
Awesome. That worked for me. I was able to download a text file, JPG, and RDP file. Thanks @adam
I also added a button to the content of the UDElement to keep the button feature and create a download button: