More in this section
Forums / General Discussions / Is there any way to download all the libraries documents not one by one, but all at once?

Is there any way to download all the libraries documents not one by one, but all at once?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Inna
    Inna avatar
    97 posts
    Registered:
    08 Jun 2012
    06 Jun 2016
    Link to this post
    Hello, we have thousands of documents in multiple libraries. How do I download them all? Thank you.
  2. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    19 Jun 2017
    07 Jun 2016
    Link to this post
    Hi, 
    Please have a look at th following documentation article on how to 
    Download documents programatically
    http://docs.sitefinity.com/for-developers-download-documents-programatically


    You could for example alter it with

    var documents = librariesManager.GetDocuments();
    foreach (var doc in documents)
    {
        this.DownloadDocument(doc.Id, "~/App_Data/MyDocuments");
    }


    Regards,
    Dimitri Cools
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered