File storage
Connect Nextcloud, ownCloud, a Synology NAS or any WebDAV server, so workflows can copy or move files there.
A WebDAV connection points at one folder on a WebDAV server. The Copy to WebDAV and Move to WebDAV steps store files in that folder, or in folders inside it.
Add one under Automations › Connections with Add connection, then choose a service under File storage:
| Service | Use it for |
|---|---|
| Nextcloud | Files in your Nextcloud |
| ownCloud | Files in your ownCloud |
| Synology NAS | Shared folders, through Synology's WebDAV Server package |
| WebDAV | Any other WebDAV server, such as Seafile, Apache, nginx or rclone serve webdav |
All four are the same kind of connection; the service only changes the setup notes.
Settings
| Setting | |
|---|---|
| Folder address | The WebDAV address of the folder files go into. Steps can't store anything outside it. |
| User name | Your user name on the server. |
| Password | Kept secret. Use an app password where the server offers one, so you can revoke it without changing your own password. |
Test connection reads the folder's properties, which changes nothing on the server. It checks that the server answers, accepts the user name and password, and has the folder. Create the folder on the server first if the test says it's missing.
A server on your own network, such as a NAS at 192.168.1.20, needs Allow private network addresses, which only admins can turn on. See Outside addresses only.
Nextcloud
- In Nextcloud, open Personal settings › Security and create an app password under Devices & sessions, named Avenvail.
- Create the folder you want files in, such as Avenvail.
- In Avenvail, add a Nextcloud connection:
- Folder address:
https://cloud.example.com/remote.php/dav/files/alex/Avenvail/, with your server, your Nextcloud user name in place ofalex, and your folder at the end. - User name: your Nextcloud user name.
- Password: the app password.
- Folder address:
Nextcloud shows the WebDAV address for your account under Files settings at the bottom left of the Files app. Add your folder to the end of it.
ownCloud
The same as Nextcloud: create an app password under Settings › Security, and use https://owncloud.example.com/remote.php/dav/files/USER/ followed by your folder as the address. ownCloud Infinite Scale uses https://ocis.example.com/remote.php/dav/files/USER/ too.
Synology
- In DSM, install WebDAV Server from Package Center, open it and turn on HTTPS (port 5006 by default).
- Give the user you'll connect as read and write permission on the shared folder.
- Add a Synology NAS connection with
https://your-nas:5006/followed by the shared folder and any folder inside it, such ashttps://nas.local:5006/home/Avenvail/.
If the NAS uses a self-signed certificate, Avenvail refuses the connection. Use a certificate from Let's Encrypt (DSM can request one under Control Panel › Security › Certificate), or put the NAS behind your reverse proxy.
WebDAV
Any server that speaks WebDAV works. The address is the folder's full WebDAV URL, ending in a slash or not. Avenvail sends Basic authentication, so always use https:// for a server outside your own network.
How files are sent
- Avenvail streams files to the server as they're read, without holding them in memory, so large videos work. A file can be up to 20 GiB, and the step can take up to 10 minutes.
- Missing folders inside the connection's folder are created as they're needed.
- When a name is taken, the step adds a number, replaces the file, leaves it, or fails, as you choose. Avenvail asks the server not to overwrite a file when the step shouldn't (
If-None-Match: *), so two runs storing the same name at once never overwrite each other on servers that support it, such as Nextcloud. - Folder and file names come from the step and can use templates, such as
Screenshots/{{ subject.createdAt | date: 'yyyy/MM' }}. Names with..or control characters are refused.