Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneup_uploader.yaml config : env vars are not taken into account #433

Open
PauchardThomas opened this issue Feb 20, 2023 · 0 comments
Open
Labels
Milestone

Comments

@PauchardThomas
Copy link

PauchardThomas commented Feb 20, 2023

Bug Report

Q A
BC Break yes
Version 4.0

Summary

oneup_uploader.yaml env var not working

How to reproduce

Hi , when i'm trying to put env vars in my .env / .env.local files and then pass them to my config/packages/oneup_ploader.yaml, it's not working.
For instance

  • for use_orphanage i got Oneup\UploaderBundle\DependencyInjection\OneupUploaderExtension::createStorageService(): Argument #3 ($orphanage) must be of type bool, string given, called in /var/www/vendor/oneup/uploader-bundle/src/DependencyInjection/OneupUploaderExtension.php on line 103
  • for max_size ; env var is not taking into account
oneup_uploader:
    mappings:
        depot:
            frontend: dropzone
            storage:
                type: gaufrette
                filesystem: gaufrette.uploads_filesystem
            namer: app.depot_namer
            ## Working :
            use_orphanage: true
            ## Not working (.env  : ORPHANAGE ='true' or ORPHANAGE ='1') :
            # use_orphanage: '%env(bool:ORPHANAGE)%'
            # use_orphanage: '%env(ORPHANAGE)%'
            ## Working :
            max_size: 200000000
            ## Not working :
            #max_size: '%env(MAX_FILE_SIZE)%'
    chunks:
        maxage: 86400 # 24h
        storage:
            directory: "%kernel.cache_dir%/uploader/chunks"
    orphanage:
        maxage: 86400 # 24h
@PauchardThomas PauchardThomas changed the title oneup_uploader.yaml config : env var are not taken into account oneup_uploader.yaml config : env vars are not taken into account Feb 20, 2023
@stale stale bot added the stale label May 21, 2023
@bytehead bytehead removed the stale label May 30, 2023
@1up-lab 1up-lab deleted a comment from stale bot May 30, 2023
@stale stale bot added the stale label Aug 12, 2023
@1up-lab 1up-lab deleted a comment from stale bot Aug 16, 2023
@bytehead bytehead added bug and removed stale labels Aug 16, 2023
@bytehead bytehead added this to the 4.x milestone Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants