uploadcare/uploadcare-php

Missing URL on File in FileCollection when fetching it from group

Closed this issue · 4 comments

Describe the bug

When I fetch Files from a FileCollection i fetched from a Group there is no CDN URL set.

Expected behavior

The File should have a CDN URL

Code / screenshots

$group->getFiles()->first()

Bildschirmfoto 2021-10-22 um 17 37 28

Environment

  • Library version: 3.1.1
  • Language/framework version: PHP 8.0
  • OS version: Mac OS

Hi @calcifer1337
Thank you for report.

I believe this is already fixed. This commit fixes this bug, I've just check in my local computer that everything is OK and you can see how it works here. Every preview source is a CDN url from file list.

Please, try to reinstall your packages and clear application cache, and please, let me know will it help or not.

How do I fetch the group link of a file? I don't mean the original file url.

What I mean is the nummerated file Url of the group.

Behaviour should be the same in both (file and group) cases. But I'll check your case with group.

Hi. Fixed in 571da09.