1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
630 stars 119 forks source link

Is there a detailed tutorial or demo project? #262

Closed tacman closed 2 years ago

tacman commented 2 years ago

Symfonycasts has a detailed tutorial on uploading files, something I feel like I've been fighting with for a while. There's even a whole section on Flysystem:

https://symfonycasts.com/screencast/symfony-uploads/flysystem

Alas, that tutorial is for Symfony 4, and uses an outdated version of this bundle and of course Flysystem 1. Is there a demo project (even the one from that tutorial) or another tutorial that describes how to integrate this bundle with Symfony 6 and PHP 8 (that is, version 4 or main of this bundle)?

I tried to update my code that was based on that tutorial, but am fighting with the configuration. It looks like the cache adapter is no longer used, the "League\Flysystem\FilesystemInterface" namespace is now "League\Flysystem\FilesystemOperator", that kind of stuff.

My needs are really basic -- a service to upload a files (via web or CLI) locally (for dev) or to aws_s3 (or some other already-supported adapter), configure liip_imagine to render thumbnails, or provide a link to download the files, possibly securely (that is, an authenticated user).

Taking Ryan's Space Asteroids project and updating it would help a lot of us with pretty basic needs. Or really any demo project would work. If there is one, it'd be great to provide a link to it in the README.

Thanks!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.