EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

ability to use flysystem to manage uploaded files

Open emmanuel-averty opened this issue 3 years ago • 5 comments

When using ImageField, the downloaded image goes to local file system. With this PR, easy admin user can configure a FilesystemOperator in order to abstract file system and therefor choose where to put the images. It can bee anything supported by Flysystem such as S3 bucket or FTP directory.

The FilesystemOperator instance has to be configured with the Flysystem Symfony bundle

Closes #5544

emmanuel-averty avatar Jan 04 '23 11:01 emmanuel-averty

Anything is blocking this PR ?

apsylone avatar Mar 07 '23 08:03 apsylone

I think it would be better to introduce an interface along with a simple default implementation to also allow different drivers/adapters. Then maybe it would even be enough to provide some documentation about how to provide your own implementation.

mahono avatar Oct 25 '23 18:10 mahono

Thank you @mahono for this advise. You're very right. I'll try to modify this PR to provide the implementation you suggest.

emmanuel-averty avatar Oct 25 '23 18:10 emmanuel-averty

Hi @emmanuel-tilleuls. Please are going to modify PR in the future, or it is OK for you if I take care of it? Thanks a lot.

pdragun avatar Jul 28 '24 11:07 pdragun

Hi @pdragun. I don't have much time to take care about this PR these days. Feel free to reuse the code.

emmanuel-averty avatar Jul 29 '24 07:07 emmanuel-averty