Key concepts
Data & mapping
Working with files
6 min
some modules in {{product name}} work with files, allowing you to download, upload, transform, or move files between apps for example, you can download email attachments or transcribe audio files using ai to use a file in your scenario, you first need a module that retrieves the file data once the file is available, you can map it to subsequent modules for further processing how to work with file handling modules input for file handling modules to use the file handling modules, you will require two inputs file name data step 1 to get the file name and data , use any module that can download or return the content of a file you wish to process for example google drive > download a file , dropbox > watch files , facebook pages > watch posts , or gmail > list attachments and media , etc step 2 use the output from step 1 as the input for the file handling module the file name and file content are then mapped automatically or you can map them manually as shown below to process a file from a url, use the http > download a file module to download the file you can then map the downloaded file from the http > download a file module to the appropriate field in your {{scenario singular lowercase}} example 1 upload images to cloud storage the example below shows how to upload images from gmail to google drive the gmail > list email attachments and media module returns the image and other data based on the filters set to upload the image to google drive, select the gmail > list email attachments and media as the source file in the google drive > upload a file module {{product name}} automatically maps the file name and content, and uploads it to the specified google drive folder in some cases, you may want to rename a file while keeping its content unchanged to do this, use the map option to map the file name and file content separately when specifying the file name, include the full name and extension (for example, invoice xml) both binary files (such as photos, videos, and pdfs) and text formats are supported example 2 download photos to dropbox using the http module the following example demonstrates how to map photos from facebook pages to dropbox using an http module the facebook pages > watch posts (public page) trigger returns the image’s url and other details the http > download a file module is added to download the file from the url to upload the image to dropbox, select the http > download a file as the source file in the dropbox > upload a file module {{product name}} automatically maps the file name and content, and the images will be uploaded to the specified dropbox folder as shown in example 1, you may want to rename a file without changing its content to achieve this, use the map option to map the file name and file content separately example 3 extract and analyze content from a pdf file in the example below, a pdf file containg a wikipedia page with holidays in the czech republic is stored in google drive it is then downloaded, and its content is extracted and analyzed for further processing the google drive > download a file module is used to download the pdf file the file’s contents are then extracted using the make ai content extractor > extract text from a document module by mapping the output from google drive > download a file when this module runs, an output bundle of the text from the pdf file is generated the output of this module can be further analyzed to achieve the desired results as shown below in this example, make ai toolkit > simple text prompt is instructed to list all the holidays in chronological order with one entry per line maximum file size the maximum file size allowed depends on the plan you are subscribed to (free 5 mb, core 100 mb, pro 250 mb, teams 500 mb, enterprise 1,000 mb) if it is exceeded, {{product name}} proceeds in accordance with the settings of the https //app archbee com/docs/tdd jyughqvhdcq3szf9 /7 hehdtuu2xyys8 qurub#psdxt option