Creating Directories with this project

May 20, 2015 at 8:22 AM
Hi,

Firstly thanks for the project i have finally succed to work with it.

I want now to know how we can use this project to list directories and create and all the other functions that Webdav normally could do it??


if someone has an idea please..

Thanks.
May 27, 2015 at 8:52 AM
Hi,

I have succeed finaly to resolve the problem by using this javascript code and also the COPY and the DELETE.
    function DeleteFile() {
        var strSaveLoc = "http://localhost:46961/wordstorage/test1.docx";
        $.ajax({
            url: strSaveLoc,
            type: 'DELETE',
            success: function (result) {
                // Do something with the result
                alert("file deleted succesfuly !!!");
            }
        });
    }

    function CreateFolder() {
        var strSaveLoc = "http://localhost:46961/wordstorage/testJamal1/";
        $.ajax({
            url: strSaveLoc,
            type: 'MkCol',
            success: function (result) {
                // Do something with the result
                alert("Collection created succesfuly !!!");
            }
        });
    }

    function CopyDoc() {
        var strSaveLoc = "http://localhost:46961/wordstorage/Test-2.docx";
        var destination = "http://localhost:46961/wordstorage/testJamal/Test-2.docx";
        $.ajax({
            url: strSaveLoc,
            type: 'COPY',
            beforeSend: function (request) {
                request.setRequestHeader("Destination", destination);
            },
            success: function (result) {
                // Do something with the result
                alert("item copied succesfuly !!!");
            }
        });
    }