Hello JQ1983.
I don’t understand your message, how will it help me? We’re on a forum. I’m asking for help. No need to be nasty. If I’ve posted a message, it’s because I haven’t found a solution.
Please be more eleborate in your problem description. Your code snippets by themself do nothing. What is working and what isn’t working. What (error) messages do you get. Post a peace of sample code. Etc.
Are you using a runas account and what environment are you using. There apears to be a bug when using a runas account, the uploaded file can’t be found then.
If I us the integrated environment with default credentials, the file is uploaded and the content is available in the $page variable with this code: param( [Parameter(Mandatory)] [ComponentModel.DisplayName("Excel file")] [File]$File ) [Text.Encoding]::UTF8.GetString($File.Content)
I have the impression that this option tries to read the contents of the file. In my case, I don’t need to read the contents, but I do need to have the file path so that I can process it with an Excel module for Powershell.