Request: Support for generic WebDAV photo sources in Gallery

I would like to request support for generic WebDAV photo sources in the SailfishOS Gallery application.

The idea would be to add a WebDAV account plugin under Accounts, where users could configure:

  • WebDAV server URL
  • Support for other remote storage protocols, such as SFTP.
  • Username and password, or an app password
  • One or more remote folders
  • Whether subfolders should be included
  • Read-only of course
  • Thumbnail caching (using built-in EXIF pictures)
  • Video support

The selected folders should appear in Gallery as a separate source, for example:
text

Gallery
├── Photos
├── Videos
├── Screenshots
├── Android™storage
└── MyNAS
       ├ 2026
       └ Screenshots

The WebDAV photos should not simply be imported into the normal local “Photos” collection. They should remain associated with the configured WebDAV account and be displayed as a separate Gallery source or album.

A possible implementation could use the existing Nextcloud account and Gallery integration as a starting point. Nextcloud already uses WebDAV for file access, so parts of its account, credential-storage, synchronization, or Gallery-extension code might be reusable. However, the proposed feature should support generic WebDAV servers, not only Nextcloud.

I assume this could be achieved with harbour-ferry setting up local bi-sync with the Gallery app directory. SailPhoto app from the Jolla Store also gives the necessary folders flexibility.

Yes, but the goal isn’t to have all the files downloaded to your smartphone. The goal is to have a database of thumbnails, and only download a specific photo when you want to view or edit it.

Did not notice next to last item in your list of wishes. I am not aware of rclone - tool most recent cloud sync apps are now based on - being capable of doing that. App would need to intercept user touch and load files on demand. Which is feasible but not likely to be implemented soon I think. Prove me wrong.

If we’re talking about regular folders full of photos and videos, lautta and netvfs can do much of this today. For media, they use a gallery view based on jolla-gallery.

I don’t disagree with the idea though. :+1:

Neat. One problem with this flourish of apps declaring “The goal is to make this available via the Jolla Store” is discoverability.

Very nice attempt! I’ll try it, even if it doesn’t solve the original problem on my list (I have it in Jolla Gallery). However, your app is missing a root mode for live-editing system files, which would make it a good alternative to Harbour File Browser.

Thanks! I just realised WebDAV(S) support is not in the 1.0.0 available on GitHub. I’m working on WebDAV(S) and FTPS as we speak, so I jumped the gun there. My bad. Will be available for testing soon™, though!
Regarding the lack of full file system access: Yeah, that’s on purpose. :full_moon_face: I do get the point, but I don’t want my apps touching system files; I want them nicely sandboxed.
I want this to eventually be a functional equivalent to the iOS Files app, available in the Jolla Store and compliant with its rules. Regular users should be able to get everything done that they need, including proper search and access to remote storage locations. Currently the former is barely implemented in Lautta, the latter only works via netvfs for a lack of a proper SFOS Storage/Accounts API.

Understandable. Please ignore my current quote and keep it as it is in your app.