Powershell FTPS Upload Not Working
Hi,
I'm trying to upload a file to a FTPS location using powershell and WinScp, but it is not working.
I get below error:
I have attached my powershell script.
Note: Using WinScp GUI, the file upload works fine.
I'm trying to upload a file to a FTPS location using powershell and WinScp, but it is not working.
I get below error:
WinSCP.SessionRemoteException: Error transferring file 'D:\testpackage.xml'. ---> WinSCP.SessionRemoteException: Copying files to remote side failed.
Unexpected error encountered. Please retry.
--- End of inner exception stack trace ---
at Check(Object , Object[] )
at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)
I have attached my powershell script.
Note: Using WinScp GUI, the file upload works fine.