Skip to main content
Version: 2.4.3

Nextcloud Shared Links

You can display images from a public Nextcloud folder share or Photos app album directly in Gallery View without requiring any Nextcloud account or connection configuration.

The nextcloud-share source type is entirely separate from the authenticated nextcloud source type. It works using public share URLs created on a Nextcloud server.


The nextcloud-share Source Schema

sources:
- type: nextcloud-share
url: https://cloud.example.com/s/TOKEN
password: "optional-share-password"
recursive: true
filenameFilter: "IMG_*"
filters:
mimeTypes:
- image/jpeg
- image/png
minSizeKb: 10
maxSizeKb: 5000
sort:
by: name # name | size | lastModified
order: asc # asc | desc
limit: 20
view:
type: grid
FieldTypeRequiredDescription
typestringYesMust be nextcloud-share.
urlstringYesPublic share URL from Nextcloud (standard /s/TOKEN or Photos app /apps/photos/public/TOKEN).
passwordstringNoPassword if the Nextcloud public share link is password-protected.
recursivebooleanNoWhen true, scans subdirectories inside the share. Defaults to true.
filenameFilterstringNoGlob pattern for filename matching (e.g. IMG_*, *.png).
filters.mimeTypeslist of stringsNoFilter files by MIME types.
filters.minSizeKbnumberNoMinimum file size in kilobytes.
filters.maxSizeKbnumberNoMaximum file size in kilobytes.
sort.byname, size, or lastModifiedNoField to sort files by.
sort.orderasc or descNoSort order (asc or desc).
limitnumberNoMaximum number of images to display.

Supported URL Formats

Gallery View automatically parses and resolves several Nextcloud public share URL formats:

  • Standard Files Public Link: https://cloud.example.com/s/TOKEN or https://cloud.example.com/index.php/s/TOKEN
  • Files App Share Link: https://cloud.example.com/apps/files/s/TOKEN
  • Photos App Public Album Link: https://cloud.example.com/apps/photos/public/TOKEN

Examples

sources:
- type: nextcloud-share
url: https://use23.thegood.cloud/s/abc123456789
view:
type: grid
sources:
- type: nextcloud-share
url: https://use23.thegood.cloud/s/xyz987654321
password: "secret-share-password"
view:
type: thumbnail

3. Nextcloud Photos App Public Album

sources:
- type: nextcloud-share
url: https://use23.thegood.cloud/apps/photos/public/albumToken123
view:
type: carousel

Troubleshooting

  • Invalid Nextcloud Share URL: Ensure the URL is a valid public share link copied from Nextcloud.
  • Authentication Failed / Password Protected: If the share link requires a password, make sure to specify the password property in your YAML block.
  • Share Not Found or Expired: The share link may have expired or been deleted by the owner on Nextcloud.