Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 881 Bytes

File metadata and controls

33 lines (26 loc) · 881 Bytes

WebDAV

Flysystem is able to interact with WebDAV servers. To configure this bundle for such usage, you can rely on adapters in the same way you would for other storages.

Installation

composer require league/flysystem-webdav

Usage

# config/packages/flysystem.yaml

services:
  webdav_client:
    class: Sabre\DAV\Client
    arguments:
      - { baseUri: 'https://webdav.example.com/', userName: 'your_user', password: 'superSecret1234' }

flysystem:
    storages:
        webdav.storage:
            webdav:
                client: 'webdav_client'
                prefix: 'optional/path/prefix'
                visibility_handling: !php/const \League\Flysystem\WebDAV\WebDAVAdapter::ON_VISIBILITY_THROW_ERROR # throw
                manual_copy: false
                manual_move: false