dustin10 / VichUploaderBundle

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
MIT License
1.83k stars 519 forks source link

Optionally resolve the uri through flysystem #1451

Closed dheineman closed 3 months ago

dheineman commented 3 months ago

Based on the work of @sovetski in #1441 the PR will allow you to optionally have FlysystemStorage return the public URL of the filesystem instead. Doing it like this makes the new behaviour become opt-in and it does not require a new major version to release.

To enable simply add a configuration variable:

vich_uploader:
    db_driver: orm
    metadata:
        type: attribute
    storage: 'flysystem'
+   use_flysystem_to_resolve_uri: true