try { WebClient client = new WebClient(); string myFile = fileInfo.FullName; string newAttachPath = fileStoragePath + myFile; //client.Credentials = CredentialCache.DefaultCredentials; NetworkCredential netwrkCreden = new networkCredential("username","password","domain"); client.Credentials = netwrkCreden; client.UploadFile(newAttachPath, "PUT",myFile); client.Dispose(); } catch(Exception ex) { MessageBox.Show(ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)