Skip to content

BadMethodCallException on getWithMetadata #19

@glutaminefree

Description

@glutaminefree

When I call

Yii::$app->fs->getWithMetadata('/path/to/file', ['mimetype']);

I get:

BadMethodCallException
Call to undefined method League\Flysystem\Filesystem::getWithMetadata

I found this
thephpleague/flysystem#461

Adding this line:

$this->filesystem->addPlugin(new \League\Flysystem\Plugin\GetWithMetadata());

to yii2-flysystem/src/Filesystem.php to end of init() method fix this bug. But it return all metadata, not only parameterss from second argument of function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions