Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / FTP file trouble

Author
Message
fex
21
Years of Service
User Offline
Joined: 19th Mar 2004
Location: Fairview, Oregon
Posted: 19th Mar 2004 22:55
Hello everyone. I'm trying to get a program rolling that will log onto an ftp server and upload all of the files in the current directory. If I specify a filename it works fine, but if I use the checklist and try to do this in a more dynamic fashion, it complains at runtime about not being able to write the file to my ftp site. I've enclosed the code below, I look forward to any suggestions.
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 22nd Mar 2004 08:58
read up on FTP put file ....

Also, what is the error exactly?

Just guessing, I think that the FTP command
is trying to place the file name onto the FTP site exactly
as named .... Not possible because

1 - some files returned by the checklist are not files
but are directories and you did not check for that.

2 - if the filename returned by the checklist contains the full
windows path, the FTP command will try to access that path on the
FTP site, and that path will not exist. You should check the FTP
site for a valid directory before writing to it.

3 - I think FTP file names follow the old DOS filename thing and might not support long filenames like windows does. Also check for space (asci 32 ) in the filename, sometimes that's a problem too.

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html

Login to post a reply

Server time is: 2025-05-31 17:44:11
Your offset time is: 2025-05-31 17:44:11