Ftps creates a new directory when files uploads.

0
Why does ftps create a new directory when it uploads a file? I use a simple command to upload the file to the root directory: ' Uploading file to FTPs server client.Upload("C:\temp_\test123.txt", "/test123.txt") But each time a directory is created with a file name and the file is placed in this directory instead of in the root. Best Regards Robert
ftp
 
asked 10/23/2020 10:58:58 AM
add a comment

1 Answers

0
Please use the following code: `client.Upload("C:\temp_\test123.txt", "/")` or `client.UploadFile("C:\temp_\test123.txt", "/test123.txt")`
 
answered 11/21/2020 1:58:28 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ftp or ask your own question.