You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this lib but When I upload files the respose came with no exception but file didnot uploaded
my code :
Public Async Sub uploadFile()
Try
_stpWtch.Restart()
txt_log.AppendText($" {Environment.NewLine} ============================ uploadFile ======== {_stpWtch.Elapsed} ===============")
openConn()
Using _client = New WebDavClient(clientParams)
Dim _dest_path = $"{_domainName}{_rootPath}{txt_rmot_fil.Text}"
If chk_pth.Checked Then
Try
txt_log.AppendText($" {Environment.NewLine} try to mak dir [{_stpWtch.Elapsed}] ")
Await _client.Mkcol(_dest_path)
txt_log.AppendText($" {Environment.NewLine} mkDir {_dest_path} [{_stpWtch.Elapsed}] ")
Catch ex As Exception
End Try
Else
txt_log.AppendText($" {Environment.NewLine} ignor chk path [{_stpWtch.Elapsed}] ")
End If
Dim _dest_path_final = $"{_dest_path}/{Path.GetFileName(txt_brws.Text)}"
Await _client.PutFile(_dest_path_final,
File.OpenRead($"{txt_brws.Text}")) ', "text/plain"
txt_log.AppendText($" {Environment.NewLine} Compelete uploading file to {_dest_path} [{_stpWtch.Elapsed}]")
_stpWtch.Stop()
End Using
Catch ex As Exception
_stpWtch.Stop()
txt_log.AppendText($" {Environment.NewLine} Exception Uploading [ {ex.Message}] at [{_stpWtch.Elapsed}]")
End Try
End Sub
spacially when upload to folder that isnot exist
you can seen that Iam usign mkcol to create folder each time bcz no IsExist Method that chek if file or path is exist
The text was updated successfully, but these errors were encountered:
I'm trying to use this lib but When I upload files the respose came with no exception but file didnot uploaded
my code :
spacially when upload to folder that isnot exist
you can seen that Iam usign mkcol to create folder each time bcz no IsExist Method that chek if file or path is exist
The text was updated successfully, but these errors were encountered: