Save File
Last updated
Last updated
With the Save File building block, you can save file urls or download files.
Start by choosing where to get the file from. These are the options:
From file URL: Use this option if you have a direct URL to the file you want to save.
From download action: This is when your TaskBot performs an action that initiates file download (like clicking a download button).
Let’s go over each option in detail.
Enter file URL: Provide the direct URL to the file. Here is an example of a valid file URL: https://wallpaperaccess.com/full/2656.jpg.
Save file to folder: Enter the folder path where you want the file saved. You can make your TaskBot rename the file in File options. This is how to get the folder path:
Initiate download: Ensure your TaskBot is set up to first click a download button or take any necessary steps to initiate the download.
The system dialog to select folder to save the file to will not be visible to you if you watch your TaskBot run. Your TaskBot will handle it 'behind the scenes'.
Saving Options (choose one or both):
Save file URL to a variable or table: Select a variable or table to store the file URL from the download action. This can be useful if you want to reuse the file URL in another part of your workflow. For example, you can then use Upload File building block and reference to the file URL to get the file from for the upload.
When downloading files to you local folder, you can use File options to configure your preferences.
Make file name unique on conflict: Toggle this option if you want to avoid overwriting files with the same name. Whenever there is a file with the same name, your TaskBot will add a random ID to the end of the file name to make it unique (e.g., file_name_6354736148.png
). If left untoggled, files with the same name in the folder will be overwritten.
File name (optional): Enter a custom file name if you want to rename the downloaded file. If there is already a file with the same name in your folder, then your TaskBot will either make the file name unique or overwrite the file depending on whether or not you toggled the option Make file name unique, as described above.
Save full file path (optional): Save the full path of the downloaded file, including the file name, to a table or variable. This can be useful if you want to reuse the file in the Upload File building block which can get the file from your folder in order to upload it.
Note: You can only save your file url or file path to a standard column / variable and cannot save it to a file column or variable. This is because Save File building block only saves the url or the path to the file whereas the file column or variable expects the 'real' file.
Save file to local folder: Enter the folder path to save the file locally. You can make your TaskBot rename the file in File options. This is how to get the folder path: