Overview
File processing apps allow you to add support for new custom file formats and customize processing for supported file formats.
Using External Storage
Section titled “Using External Storage”By default, File Processor apps use the filesFolder as a temporary folder to store large responses. For better scalability and serverless deployments, use the global fileStore configuration:
configuration.fileStore = { async storeFile(content) { // Store file and return reference return fileReference; }, async getFile(fileRef) { // Retrieve file by reference return fileBuffer; }, async deleteFile(fileRef) { // Delete file by reference }};See External File Storage for detailed configuration.
Per-Module Configuration
Section titled “Per-Module Configuration”You can also override storage per file processor module:
configuration.{file-process-type}.storeFile = (content) => { // logic to store file, e.g. put it to AWS S3 return '<url-to-download>';};For AWS Lambda, set AWS_REGION and AWS_TMP_BUCKET_NAME environment variables, or configure:
configuration.awsConfig = { tmpBucketName: 'tmpBucketName', region: 'region'};