Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Grafikart opened this issue Sep 12, 2023 · 0 comments
Open

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

Grafikart opened this issue Sep 12, 2023 · 0 comments

Comments

@Grafikart
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant