Couchdrop offers you the ability to complete actions on files based on certain events, such as an upload by a specific user. Common use cases are adding a timestamp to a file, encrypting with PGP or routing files based on their name to different locations once a client has the files in a single directory.
Example of a workflow that encrypts files uploaded to the /sharepoint mount point with PGP
Workflow Configuration Options
Conditions
Conditions must match for an action to take place.
Condition | Description | Examples |
Transaction Type | Based on the transaction event itself such as upload or download. | Upload or Download |
Directory Matches | Filter events on a directory | /hosted/subfolder |
Filename Matches | Filter events strictly on a specific filename | *.txt, *, file*.txt |
User | Specify an authenticated user | Defined by available users |
Actions
Actions are the event themselves on the file.
Action | Description | Example |
Send Webhook | On an upload/download event send a webhook notification to a URI | https://hooks.slack.com/services/T000/B000/XXXXXXX |
Send Email | On an upload/download event send an email notification to a specific email address | bob@bobsburgers.com |
Rename File | Rename a file or add a timestamp | {TIMESTAMP}-file1.txt |
Move File | Move a file, as well as have the ability to rename at the same time | /sharepoint/import/{EXISTING_NAME} |
Copy/Duplicate File | Route files to multiple locations while retaining the original |
For example,
|
Delete File | Delete file | On completion of the workflow delete the file, or once a client has downloaded a file delete the file. |
Compress File | Compress the files into a folder |
|
Encrypt PGP | Encrypt a file using a public PGP key and copy it to a location |
|
Decrypt PGP | Decrypt a file using a private PGP key and passphrase |
|
Variables
Variable | Description |
{EXISTING_NAME} | Retains the original filename |
{TIMESTAMP} | Adds the current UNIX timestamp to the filename |
Delay
You can delay the workflow execution in seconds using this function.
Click below to go to Couchdrop and Get Started