Skip to content

Flysystem as optional filesystem operator for ImageField #5544

@emmanuel-averty

Description

@emmanuel-averty

Hi,
In this PR : #5528 I've wrote a workaround in order to use a S3 bucket for persisting images uploaded via ImageField. The PR is merged and released and I thank you for that ❤️ But this was just a quick workaround (my customer was waiting :) ).

I open this issue to discuss about a way to manage uploaded files with flysystem.

It could be implemented with a ImageField method setFilesystemOperator. If this method has been called, easy admin will use flysystem methods instead of Symfony\Component\HttpFoundation\File\UploadedFile methods to move the file to its target directory.

To be clear, I propose to add a totally optional feature, in easy admin user point of view. If setFileSystemOperator method is not called, easy admin will work the same way as today.

What do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions