[pwg.images.getInfos] provide a download_url #1674

Closed
opened 2026-10-05 00:52:29 +02:00 by adam · 1 comment
Owner

Instead of using the element_url provided by pwg.images.getInfos, it would be better to have a download_url for several reasons:

  1. if it is missing (or better, is empty), it would mean that the user has no download right
  2. if provided the API user (eg mobile app) would use the right URL, such as action.php?... with or without pwg_token: download statistics would be more accurante
Instead of using the `element_url` provided by `pwg.images.getInfos`, it would be better to have a `download_url` for several reasons: 1. if it is missing (or better, is empty), it would mean that the user has no download right 2. if provided the API user (eg mobile app) would use the right URL, such as `action.php?...` with or without `pwg_token`: download statistics would be more accurante <!-- github-sync-id:1710202292 -->
adam closed this issue 2026-10-05 00:52:29 +02:00
Author
Owner

as privately requested by @EddyLB it would useful to add a way to tell Piwigo a photo has been download from application cache, meaning without making a new request to action.php. I suggest adding a is_download parameter to pwg.history.log

as privately requested by @EddyLB it would useful to add a way to tell Piwigo a photo has been download from application cache, meaning without making a new request to `action.php`. I suggest adding a `is_download` parameter to `pwg.history.log` <!-- github-comment-id:1549114103 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1674