Windows File Explorer

I’m trying to get the Windows file/folder browser to open on a client when a button is pressed in a dashboard, and then have the full path of the selected file passed back to PSU - process is exactly the same as new-udupload so thought it’d be quite simple (any maybe it is!)

I can get the initial windows explorer window to display fine using:
Invoke-UDJavaScript -JavaScript "
var input = document.createElement(‘input’);
input.type = ‘file’;"

But I just cant seem to return the file properties to anything… Has anyone been able to do this?

Thanks

Product: PowerShell Universal
Version: 1.4.6

This is the expected behavior and what you want out of a web browser.

Think about it this way, you want the browser to give a website information about a clients file system.

If it worked like that, it would be a big’ol gaping hole in security.