Skip to main content

Processing Order for New Files

When several Folder Settings apply to an upload, Files.com processes it in a fixed sequence. Each stage sees the folder path and filename produced by earlier stages. Configure the rules around that sequence: a rule can change where later settings apply, or reject a file before later processing can change it.

Order of Operations

Files.com applies the settings for an upload in this order:

  1. Organize Files into Subfolders runs first. Files.com resolves the file's destination subfolder before applying any other setting. Other rules configured on the original folder must be recursive to follow the uploaded file into its new subfolder.
  2. The settings that limit what filenames can be uploaded (Limit Uploaded Files to Regular Expression, Limit Uploaded Files to Certain File Extensions, and Limit Uploaded Files by File Name Length) run next to check the file meets the requirements. Any of these settings can block the upload outright if the original filename or extension doesn't pass.
  3. Rename Uploaded Files applies its Filename Pattern and text-replacement rules to produce a new filename.
  4. Limit Uploaded Files by File Name Length checks again after renaming, since Rename Uploaded Files can produce a filename that's longer than the original. If the setting's option to automatically shorten uploaded file names is enabled, the renamed filename is shortened to fit the limit at this stage.
  5. Malware Scanning scans uploaded files and holds each one until its scan finishes. Nothing else runs in the meantime. If the file is clean, it moves on to the next stage. If it is infected, Files.com moves it to quarantine and none of the folder's other settings are applied to it.
  6. GPG Encryption/Decryption/Recryption and Auto Unzip run last, using the final folder path and filename produced by the earlier stages.

The file-extension and regular-expression restrictions check the incoming name before renaming or decryption. They are not reapplied to the resulting name. For example, a folder can accept report.csv.gpg under a .gpg extension rule and then store report.csv after decryption. Choose restrictions for the names your senders supply, and processing rules for the names your next system needs.

Copies, Moves, and Sync Arrivals

The upload sequence does not mean every setting applies to every way a file reaches a folder. Organize Files into Subfolders and Malware Scanning act on uploads; placing a file with a copy or move does not start those rules. A Copy Files or Move Files Automation follows the corresponding operation's behavior.

GPG folder processing and Auto Unzip run for uploads and copies into native storage. Moving a file within native storage does not start that processing. On a Remote Server Mount, GPG and Auto Unzip also process move and Sync arrivals, after staging in Files.com Native Storage and before delivery to the remote system. Syncs also follow their destination-processing and source-cleanup rules.