Closed Media gallery API media_url returns wrong

Orit

Active member
Licensed customer
Affected version
2.2.5
Hi
I'm trying to use the XFMG API, but have come across a bug:
Calling /api/media returns the correct data, but the media_url property for images (media_type: "image") is returned as /api/media/13/data.
The media_url for videos (media_type: "video") is returned correctly: /data/xfmg/video/0/37-39ae07657bdf50005e123d461dfcbcf0.mov
We are using version 2.2.5
Has this been resolved in later versions?
 
Last edited:
Automated triage: As designed

Thank you for reporting this issue. For images, the media URL in the API points to the API's own media data endpoint. Requesting it with your API key returns the image itself, after the same viewing permission checks. Videos and audio are linked directly to their stored file instead, so the two URLs look different by design.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom