Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (160 points)
Dear Support,

I use vb.net and use express in trail mode for now.
Have problems uploading multiple files in the root of serverdirectory(httpdocs).

ExFTPConnection1.LocalDirectory = Application.StartupPath & "\upload\"
ExFTPConnection1.ServerDirectory = "subdomains" & "/" & Replace(cbplaats.Text.ToLower, " ", "") & "/httpdocs/"

Code that works:
ExFTPConnection1.UploadMultiple(ExFTPConnection1.LocalDirectory, "test", "*,*", True)
Code that don't work:
ExFTPConnection1.UploadMultiple(ExFTPConnection1.LocalDirectory, ExFTPConnection1.ServerDirectory, "*,*", True)
I don't target but tries to create a dir witch already exist "httpdocs" and gave an error (550).

Is there a simple solution to do this with the upload including the subdirs:?: .

2 Answers

0 votes
by (162k points)
Many FTP servers can't cope with paths. You may need to change directory to the place you want the files to be uploaded and then use the code that works.

Anyway post a snippet of the log file that has the error in it ...
0 votes
by (160 points)
Use a directory up and then use the code that works.

ExFTPConnection1.ServerDirectory = "subdomains" & "/" & Replace(cbplaats.Text.ToLower, " ", "")
ExFTPConnection1.UploadMultiple(ExFTPConnection1.LocalDirectory, "httpdocs", "*.*", True)

Thanks for your support, your component saves a lot programming!.


Many FTP servers can't cope with paths. You may need to change directory to the place you want the files to be uploaded and then use the code that works.

Anyway post a snippet of the log file that has the error in it ...

Categories

...