Skip to content

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

Description

@Grafikart

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions