1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
630 stars 119 forks source link

Unable to generate public url when trying to use publicUrl() #286

Open Grafikart opened 11 months ago

Grafikart commented 11 months ago

Question

The documentation does not explicit how to retrieve URL using this bundle. As a starting point I injected the operator

    public function __construct(private readonly FilesystemOperator $uploadFilesystem)
    {
    }

Then I try to get the public url (this is a "local" adapter)

$this->uploadFilesystem->publicUrl($path)

This throw an UnableToGeneratePublicUrl from flysystem (this is documented here https://flysystem.thephpleague.com/docs/usage/public-urls/). Is there additional step to do to make this work with this bundle ?

Q A
Version 4.9.0