 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jdulitz
Joined: 19 Jun 2007 Posts: 4 Country: United States |
|
FTPPUTFILE ERROR "Extended error code: 26" |
|
I am trying to FTP a file and am getting this error message:
An error occurred while executing automation script: Line 7: Upload failed for "". Cannot open source file "c:\temp\test.txt" for reading: no such file or directory. Extended error code: 26.
Here is the line 7:
FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "/temp/test" )
Your help is appreciated.
|
|
Tue Jun 19, 2007 3:43 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Are you sure you have that file? No spelling errors in the name?
|
|
Tue Jun 19, 2007 4:03 pm |
|
 |
jdulitz
Joined: 19 Jun 2007 Posts: 4 Country: United States |
|
|
|
Thanks for the follow up. File is present and spelling is correct.
I figured it out. I had to use 2 forward slashes in the destination path:
This works: FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "//temp//test" )
This doesn't: FTPPutFile( ftp_server, ftp_username, ftp_password, "C:\\temp\\test.txt", "/temp/test" )
I fing this strange because I can use just 1 forward in the path when doing an FTPDir:
This works: FTPDir( ftp_server, ftp_username, ftp_password, "/temp/*", return )
Do you know why this is?
Thanks.
|
|
Tue Jun 19, 2007 4:28 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
I am not sure why you need double slashes in //temp//temp. Is /temp/temp is a directory name or file name? The last parameter is supposed to be file name.
|
|
Tue Jun 19, 2007 7:12 pm |
|
 |
jdulitz
Joined: 19 Jun 2007 Posts: 4 Country: United States |
|
|
|
//temp//test
temp is the directory and test is the file name
|
|
Wed Jun 20, 2007 6:43 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|