# On-prem files - Upload file
This action uploads a file to an existing folder. You can choose to overwrite contents of an existing file, or upload copies of it with an incremental number appended to the name.
Upload file action
# Input fields
Input field | Description |
---|---|
Folder |
Select the folder to upload the file to. This can be done either by selecting a folder from the pick list, or toggling the input field to text mode and providing the folder path. This should be relative to the base path you define in the connection profile. Learn about relative path. |
File name | Name of the file to be uploaded. This should only be the filename without any path. |
File contents | Content of the file to upload. This input field supports streaming. |
Overwrite existing file? |
If Yes, contents in an existing file with the same name and extension will be replaced. If No, a new file will be created with an incremental number appended to the end of the filename. For example, if you are trying to upload report.csv to a folder that already has a file with that name, report_1.csv will be created with the new contents. Subsequent uploads will create report_2.csv and report_3.csv. |
# Output fields
Output field | Description |
---|---|
File name | Name of the file, with extension. |
File path | This is the path of the file. This path is relative to the base path you define in the connection profile. Learn about relative path. |
File size (bytes) | Size of the file contents in bytes. |
Created time | This is the time that the file was created. This value is set by your OS. |
Last modified time | This is the last modified time of the file. This value is updated by your OS. |
File existed before upload? | If there was a file with the same name and extension in the selected folder, this datapill with return true . Otherwise, false . |
Last updated: 7/2/2021, 10:57:57 AM