How to dowload a public photo album from nexcloud?

Hello everyone !

Today I created a photo album in my own nextcloud instance and I needed to download all pictures from that album.

Problem : it seems that this feature was disabled in previous version see this post : Possible to download all photos from an album? - #6 by rzbrk
After some research on the web, i didn’t find a way to do that. But I found a solution until the feature is add and I thought it was a good idea to share my temporary solution.

Pre-requisites : install WinSCP if you are on Windows (or equivalent but compatible with WebDAV protocol) | Create public link of your album

Step 1 :
Go to your public album in your web browser, show devtools window (F12), use “pick element from the page” feature and click on a picture. You will find the url of your picture. Copy that.

Step 2:
In WinSCP, select a new connection and chose WebDAV protocol. Past the link of your picture and remove the picture name (.jpg). Click on connect.
image|x416

Step 3:
You will connect to your remote directory album and now you can download all your photos !

I hope this post will help some people
0fawkes

1 Like

Thank you for the work-around.

I am using Linux (Arch with XFCE) and tried to reproduce the work-around with the programs available on this platform:

  1. Added a public link to an existing album in NC.
  2. Opened a console in the Brave Browser (based on Chrome) with F12 and copied the link for one images of the album. Then, I removed the filename of the image. The resulting link has the form:
    https://<base url>/remote.php/dav/photos/<user>/albums/<album name>
  3. I copied the link to the address bar of the file browser Thunar and exchanged “https” by “davs”. Then, I am presented with a dialogue to enter my credentials.

Unfortunately, I get the error message “Failed to open . HTTP Error: Not Found.”

Note: I use 2FA authentication, therefore I cannot use my regular account password. Instead, I used a dedicated application password that I generated beforehand.

Hello @rzbrk,

I think there is a little confusion in your URL. When you get it from devtools it should be https://<base url>/remote.php/dav/photospublic/<random folder name of the album>. There is no user inside

Next, when you copy that link without the picture you do not need to log in your ftp software.

Note : when you target a picture in your public album you have to take the url from html tag link <a> </a> not tag img.

1 Like

Hi @0fawkes!

Yes, you are right. I changed the sequence of actions from my last post. That is was I did now following your recommendation:

  1. Added a public link to an existing album in NC.
  2. Opened the album following the public link.
  3. Opened a console in the Brave Browser (based on Chrome) with F12 and copied the link for one images of the album from the <a> tag. Then, I removed the filename of the image. The resulting link has the form:
    https://<base url>/remote.php/dav/photospublic/<random album id generated by NC>
  4. I copied the link to the address bar of the file browser Thunar and exchanged “https” by “davs”. Then, I am presented with a dialogue to enter my credentials.
  5. After entering my credentials I was presented with a list of files for the images in the album!

Awesome, that helps a lot! Thank you so much! :grinning:

@rzbrk You’re welcome !
I am glad can help you !