FilesSelector
Portal only
Works only inside an ONLYOFFICE Apps portal: it needs the portal's API client, stores and translations, and is not part of the public API.
FilesSelector is a full file-system browser selector for navigating ONLYOFFICE Apps rooms, folders, and files.
Features
- Browse rooms & folders — Navigate the full file hierarchy with breadcrumb trail
- Search — Enable with
withSearch, scoped to the current folder/room - Room type filter — Restrict the root list to specific room types via
roomType - File type filter — Filter by extension or type via
filterParam - Footer input — Optionally show a file-name input field in the footer
- Footer checkbox — Optional checkbox (e.g., "keep original") in the footer
- Creation — Show a create-room button via
withCreate+createDefineRoomLabel - Aside / embedded — Rendered inside an
<Aside>panel by default; passembeddedto render inline - Portal on mobile — Automatically renders in a Portal on mobile/tablet devices
- SSR support — Pre-populate with server-fetched data via
withInit+initItems
Default
Browse rooms and folders, then click Select to confirm. The submit button is enabled only when a folder is selected.

<FilesSelector
isPanelVisible={open}
embedded={false}
currentFolderId={0}
rootFolderType={FolderType.VirtualRooms}
currentDeviceType={DeviceType.desktop}
isRoomsOnly={false}
isThirdParty={false}
withSearch
withBreadCrumbs
withoutBackButton={false}
withCancelButton
withCreate={false}
withFooterInput={false}
withFooterCheckbox={false}
submitButtonLabel="Select"
cancelButtonLabel="Cancel"
footerInputHeader=""
currentFooterInputValue=""
footerCheckboxLabel=""
descriptionText=""
disabledItems={[]}
filesSettings={filesSettings}
onSubmit={(id, title) => console.log(id, title)}
onCancel={() => setOpen(false)}
getIsDisabled={getIsDisabled}
getFilesArchiveError={getArchiveError}
/>