This project is read-only.

WEBDAV Sample

Jan 17, 2013 at 5:45 PM

HI i seeking for a webdav sample.

i have try my following code:

 

using System;
using System.Collections.Generic;
using System.Text;

using AppLimit.CloudComputing.SharpBox;
using AppLimit.CloudComputing.SharpBox.StorageProvider;
using AppLimit.CloudComputing.SharpBox.StorageProvider.WebDav;

namespace ExportADUser2XLSX
{
    class Program
    {
        static void Main(string[] args)
        {

            CloudStorage Storage = new CloudStorage();
            var BoxConfig = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.WebDav, new Uri("https://fs.test.de"));

            GenericNetworkCredentials cred = new GenericNetworkCredentials();

            
            
            cred.UserName = "administrator@test.local";
            cred.Password = "geheim";

            Storage.Open(BoxConfig, cred);

            Storage.UploadFile("C:\\test\\tes.pdf", "/FILE_CH/VERWALTUNG/test.pdf");

            Storage.Close();



        }
    }
}