---
title: "BA_createFileUpload"
canonical: "https://support.appfire.com/space/PSJ/15486744/BA_createFileUpload"
format: markdown
---
> Macro (aura-html)


> 📝 The use of this function requires the Power Actions add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | BA_createFileUpload(label, isDisabled[, isRequired, fieldDescription]) | **Package** | poweraction |
| **Alias** |  | **Pkg Usage** | createFileUpload(label, isDisabled[, isRequired, fieldDescription]) |

## Description

> Macro (excerpt)
> 
> Creates a file upload field.

Creates a file upload field. Creates an upload control that enables the users to upload multiple files to a temporary folder. For more details about the temporary file directory, see the Administration Page.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Field label. |
| isDisabled | Boolean | Yes | Specifies whether the field is read-only or no. |
| isRequired | Boolean | No | Specifies whether the field should be marked as required with a dark red asterisk.<br>Please note that marking a field as required does not perform any validation in Jira 9. However, in Jira 10, this has been improved, and the fields are now properly validated. |
| fieldDescription | String | No | A description of the field to be displayed immediately under the input box. |

## Return Type

**None**

The returned value has no meaning

## Example

```
BA_createFileUpload("file 1", false, true, "description for file 1");
BA_createFileUpload("file 2", true, false, "description for file 2");
```

![image](media://0985c60f-6c19-4742-9434-dc3781d7a006)

## See also

> Macro (contentbylabel)