Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 860 Bytes

adapter_local.md

File metadata and controls

24 lines (20 loc) · 860 Bytes

Use the local adapter

To use the local adapter which stores files on the same server the Symfony2 instance runs, you have to provide a directory.

# app/config/config.yml
oneup_flysystem:
    adapters:
        my_adapter:
            local:
                directory: "%kernel.root_dir%/../uploads"
                lazy: ~ # boolean (default "false")
                writeFlags: ~
                linkHandling: ~
                permissions: ~

For more details on the lazy parameter, take a look at the Symfony documentation. For the other parameters, take a look at the Flysystem documentation.

More to know