Performing Actions on New Files
Files.com supports lots of different integration patterns for taking action when new files arrive on your Files.com site. You can choose the best option from below based on your scenario:
Option | Details |
---|---|
Automations | Built into Files.com that allow you to automatically copy or move an arriving file to another folder (which in turn may perform additional automated actions). |
E-mail Notifications | Set at the folder level that alert selected users and groups that a file was uploaded. |
Webhooks | Configured in your Files.com folders to trigger your backend processes when files arrive (or can be triggered by other file operations). |
Amazon SNS | Topics set at the folder level that allow you granular control of messages distributed to people and apps triggered by file uploads as well as other file operations. |
Slack Webhooks | Automatically post notifications to Slack when actions occur in certain folders in your Files.com account. |
Rename Uploaded Files | Automatically renames uploaded files based on a set pattern. |
GPG Encryption/Decryption | Automatically encrypt or decrypt newly uploaded files using GPG keys that you provide. |
Organize Files | Automatically organize new and existing files into subfolders based on file extension, creation date, modification date, or using a regular expression. |
Sample Use Cases for Actions on New Files
The best method for pulling/downloading an arriving file will dependent on your process processing needs. Below are some examples of the scenarios and the approach.
When a file needs to be accessed and viewed by a person, the email notifier alerting a person to log in and download the file manually would facilitate that.
If critical timing is measured in seconds rather than minutes for your manual operation, use an SNS topic to trigger Amazon SMS to send a text message to your user announcing the arrival of the file.
To automate the process, use a webhook to trigger your backend process that leverages our API to download the arriving file immediately.
If your process needs to do multiple things at once, for instance alert someone that a file has arrived, take an archived copy of the file for safe keeping, and push a copy of the file immediately to your S3 bucket, then you can combine the folder behaviors and integrations built-in to Files.com to accomplish that, no coding necessary.