Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
UI Kit components
Jira UI Kit components
UI Kit hooks
Forge bridge APIs
Jira bridge APIs
Confluence bridge APIs
Dashboard bridge APIs (EAP)
Upgrade UI Kit versions
Last updated May 26, 2026

File picker (Preview)

To add the FilePicker component to your app:

1
2
import { FilePicker } from "@forge/react";

Description

The file picker allows the user to select files stored locally.

You can use the file card component to display selected files (along with information about each file and upload progress).


Props

NameTypeRequiredDescription
descriptionstringNoAdditional helper text shown below the file picker to guide users.
labelstringNoLabel displayed above the file picker.
onChange(files: SerializedFile[]) => voidNoCallback triggered when files are selected; receives an array of serialized files.

Examples

Default

The onChange property receives an array of serialized files and can be used to manage the selected files:

1
2
type SerializedFile = {
  data: string;
  name: string;
  size: number;
  type: string;
}

Example image of file picker

1
2
export const FilePickerExample = () => {
  const [files, setFiles] = useState([]);

  const onChange = (files) => {
    const unserializedFiles = ...
    setFiles(unserializedFiles);
  };

  return <FilePicker onChange={onChange} />;
};

Additional Elements

Use label to display text above the file picker input zone, helping users identify the purpose of the field. Use description to provide additional helper text (for example, allowed file types or size limits).

Example image of file picker with additional elements

1
2
const FilePickerWithElementsExample = () => {
  return (
    <FilePicker 
      label="Attachment"
      description="Hint text for file requirements"
    />
  );
};

Rate this page: