Easy Pass to Secure File Transfer
TM
»User: »Password:   Remember Me? 
Sysax Product Forums / Sysax FTP Automation / General Discussion / Upload Error
Posted:  22 Jun 2009 16:58
Hello,

Setting up my first script, get the following when attempting to upload a file.

6/22/2009 7:52:30 AM: [ERR] Upload error - File handle could not be opened [3:Permission denied]

Is this on the server end or local end? I should have full permissions. Also, is there a way to upload all files (*.* ?) versus specifying a single file?

Thanks
Rick
Posted:  22 Jun 2009 17:53
Resolved the upload error (problem with the SFTP server), but I cannot see a simple way of uploading all files found in one folder. Can you assist?
Posted:  22 Jun 2009 19:42
Figured out the uploading all files/folders.
Posted:  24 Jun 2009 22:02   Last Edited By: sysaxsupport
The upload error is most likely due to another program having the file open for writing.

The scripting commands give you more control on specific files in a folder that you want to upload. Here is an example:

ftpgetlist local, @locallist;
foreach $item in @locallist begin
  if $item.name eq "*.txt" begin
    ftpupload file, $item.name;
  end
end


------------------------------------------------
FTP Server Program for Windows
 

Copyright © 2008 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0