Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Upload pdf to sftp server

Why do you have two slashes here? Use just one.

Copying 1 files/directories to remote directory "home/PERUTNIA/PDF/IN//" - total size: 27.627

Upload pdf to sftp server

here is log with same path....

Upload pdf to sftp server

Hi Martin,
Thank You for Your time and help!
The log is in the attachment. Here i used remote path, under set home dir. I tryed this way to test sftp, with no problem. In next i will append with the same path as gui... there is no error, but i can not see the files in remote dir then...and so not sure where are they....
Thank You!

Re: Upload pdf to sftp server

First, make sure you use the same full/absolute path in your code as you see in the GUI.

If this do0es not help, please attach a full session log file showing the problem (using the latest version of WinSCP) as well as a GUI session log file showing a successful upload.

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Upload pdf to sftp server

Dear friends!
Please help me to find my bug in uploading files to SFTP server. It is something with remote side directory listing. I can successfully upload to test server, production returns errors.
If I use remote dir $Rem_Dir = " /PDF/IN", I get :
Exception calling "Check" with "0" argument(s): "Cannot create remote file '/PDF/IN/NG#APERUTNINA#L31275648#C2#NA80#Z202152114240.pdf'.
Permission denied.
Error code: 3
Error message from server: file:///C:/PDF/IN/NG#APERUTNINA#L31275648#C2#NA80#Z202152114240.pdf"
At C:\pdf2ftp\skript\pdf2sftp_v1.ps1:93 char:13
+ $transferResult.Check()
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SessionRemoteException

If I use remote dir $Rem_Dir = " home/PERUTNINA/PDF/IN", no files are errors?
I can manually upload with WinSCP GUI. The used script is in attached file.
Thank You very much!
With best regards!