How to upload images using <TextField />

Hello.
I am creating a macro for Confluence using Forge and I need to upload attachments via form. The TextField component does not have the type “file”, what component can I use? Or, is there any additional configuration that needs to be done to the mentioned component?

Thanks.

If you switch to Custom UI (https://developer.atlassian.com/platform/forge/custom-ui/) you can use a regular input field with type='file'

1 Like