Re: 409 conflict when uploading files
Please post full session logs file showing an upload of the same file to the same remote folder, both from GUI and the code.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
session.Open(options)
shows NO error.
result = session.PutFiles(myLocalPath + myFileName, myRemotePath, false, transferoptions);
public ClassWinSCP(string thepath,string thefilename)
{
myLocalPath = @"L:\ITORG\2_Teamassistenz, Verwaltung\Teammitglieder\\goede\_AKTUELL\";
myFileName = "*";
string myRemotePath = "/nextcloud/public.php/webdav";
string myLogfile = "Nextcloud-Upload.log";
string myLogPath;
Session session = new Session();
SessionOptions options = new SessionOptions();
TransferOptions transferoptions = new TransferOptions();
TransferOperationResult result;
myLogPath = myLocalPath + myLogfile;
session.DebugLogPath= myLogPath;
options.Protocol = Protocol.Webdav;
options.HostName = "myserver";
options.PortNumber= 9999;
options.Secure= true;
options.RootPath= myRemotePath;
options.UserName = "XXXXXXXXX";
options.Password = "YYYYYYYYY";
session.Open(options);
transferoptions.TransferMode = TransferMode.Binary;
result = session.PutFiles(myLocalPath + myFileName, myRemotePath, false, transferoptions);
result.Check();
}