> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File upload

The **File Upload** widget enables you to create or append a WhatIf scenario by uploading CSV files into the cube.

## Using the widget

To use File Upload:

1. Add your files into the relevant directory in the **stage** folder. It is located in `cvarc-starter/src/test/resources/data/`. The files you add here are then displayed in the File Upload widget.
2. To launch the File Upload widget, from the top left menu, click **Insert** > **Widgets**. This opens the list of available widgets.
3. From the list, drag and drop the File Upload widget to your dashboard.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/file-upload-icon.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=7c0ff28f511c5e71aa57b1129f16bfd0" alt="Opening File Upload" width="463" height="359" data-path="solutions/cva-risk-capital/6.0/images/file-upload-icon.png" />
</Frame>

4. Click the dropdown to select from a list of topics which are configured and have available data.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/whatif-topic-select.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=39f995740302cf7fbffb5f01a581861f" alt="Selecting topic" width="581" height="225" data-path="solutions/cva-risk-capital/6.0/images/whatif-topic-select.png" />
</Frame>

5. Next, select a file. Below the topic selector you can expand a directory structure containing the files available for the upload associated with the selected topic.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/whatif-upload-select-file.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=41142f435cd9b8a6cbe91f2a5979ba39" alt="Selecting file" width="560" height="338" data-path="solutions/cva-risk-capital/6.0/images/whatif-upload-select-file.png" />
</Frame>

6. Once you've selected the required files, enter a name for your branch in the **What-if Branch Name** field, then click **Click to Upload**.

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/upload-file.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=28934f9eea3c09c84ecdd4c1fb9b4b97" alt="Uploading file" width="560" height="246" data-path="solutions/cva-risk-capital/6.0/images/upload-file.png" />
</Frame>

<Note>
  You can only create or modify a branch if you have the required permissions. By default, only the creator of the branch can modify it.
</Note>

You can check and delete your branch in the What-If Manager. For more information, see [WhatIf Manager](../what-if#whatif-manager)

<Tip>
  For details on the File Upload Widget’s settings, see [File Upload Widget](/products/tools/ui-components/latest/online-help/components-features/widget/widget-file-upload) in the UI Components Documentation.
</Tip>

## See also

* [Delta sensitivities of Hedges](../input-files/delta-sensitivities-of-hedges)
* [Delta sensitivities of the Regulatory CVA](../input-files/delta-sensitivities-of-the-regulatory-cva)
* [Parameter Sets](./parameter-sets)
* [Vega sensitivities of Hedges](../input-files/vega-sensitivities-of-hedges)
* [Vega sensitivities of the Regulatory CVA](../input-files/vega-sensitivities-of-the-regulatory-cva)
* [\[RiskClass\].\[RiskClass\]](../cube/riskclass.riskclass)
* [\[RiskFactorId\].\[RiskFactorId\]](../cube/riskfactorid.riskfactorid)
* [\[RiskMeasure\].\[RiskMeasure\]](../cube/riskmeasure.riskmeasure)
* [\[delta-SensitivityCcy\].\[delta-SensitivityCcy\]](../cube/delta-sensitivityccy.delta-sensitivityccy)
* [\[vega-SensitivityCcy\].\[vega-SensitivityCcy\]](../cube/vega-sensitivityccy.vega-sensitivityccy)
