Download all images from library

Posted by Community Admin on 03-Aug-2018 09:12

Download all images from library

All Replies

Posted by Community Admin on 27-Jun-2014 00:00

Is there an easy way to download all images from a image library.

It would be nice if we had an backend action: Download all image 

Did not find anything in the DAM either.

Am I looking at the wrong place or has this never been requested?

Markus

Posted by Community Admin on 27-Jun-2014 00:00

Hi Markus,

I think the easiest way is to create a simple WebForm with a button that loops over the image library and downloads all the images:

var AllImages = librariesManager.GetImages().Where(i => i.Status == ContentLifecycleStatus.Master); 
        foreach (var image in AllImages)
        
            var imageUrl = image.Url;
            if (imageUrl != null)
            
                string localFilename = @"c:\SaveImages\" + image.Title + ".jpg";
                using (WebClient client = new WebClient())
                
                    client.DownloadFile(imageUrl, localFilename);
                
            
        

Kind regards,
Daniel

Posted by Community Admin on 27-Jun-2014 00:00

Hi Markus,

I created a feature requestion for this. It is still 'Private' but it should be available on this link:

http://feedback.telerik.com/Project/153/Feedback/Details/132209-add-a-download-all-action-to-a-sitefinity-library

Kind regards,
Daniel

Posted by Community Admin on 27-Jun-2014 00:00

Dear Daniel 

Thanks for the quick response. Wonder if no one ever needed this. 

Markus

Posted by Community Admin on 27-Jun-2014 00:00

Hi Markus,

Well, I needed it at some point. Probably there are more people who need this, but I think it is not a feature that you need all the time, so let's see what happens if we get the chance to vote for it? ;)

Best,
Daniel

Posted by Community Admin on 27-Jun-2014 00:00

Hello all,

I have made the feedback item public. You will be able to view, like and follow it in our Feedback portal on the following URL:

http://feedback.telerik.com/Project/153/Feedback/Details/132209-add-a-download-all-action-to-a-sitefinity-library

Thank you for your suggestions.

Regards,
Stefani Tacheva
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
 

This thread is closed