# Download Object to File

> `UiPath.AmazonWebServices.Activities.DownloadObjectToFile`

`UiPath.AmazonWebServices.Activities.DownloadObjectToFile`

## Description

Downloads an object to a specified file.

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **FileName** - Specifies the name of the local file. If missing, the object key is used instead.
* **Folder** - Specifies the full path of the folder where the downloaded object should be saved.
* **Object** - Specifies the object on which the operation needs to be performed.
* **ObjectVersionID** - Specifies the version of the object that needs to be downloaded. If not set, the latest version is deleted.
* **Overwrite** - Specifies if an overwrite should be applied to an already existing file. The default value is **False**.
* **Timeout** - Specifies how long to wait for the activity to run before an error is thrown. If a value is not set, then the activity runs until completed.
* **CreateSubfolderStructure** (Boolean) - Creates the same sub-folder structure for the file like in the bucket (if it doesn't exist already). If unchecked, the file is saved directly in the location specified in the Folder parameter.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **FilePath** - Provides the full path to the resulted file.
