jatui

FilePicker

Browse and select files from object storage — single/multi-select with inline upload

FilePicker reads from a host app's /api/files endpoints (included in the JST template). On this static docs site the modal opens but the listing stays empty.

Demo

Props

PropTypeDefaultDescription
openbooleanfalseControls modal visibility (bindable)
multiplebooleanfalseAllow selecting multiple files
acceptstring""Filter by MIME type or extension (e.g. "image/*,.pdf")
titlestring"Select File"Modal title
apiBasestring"/api/files"Base URL for file API endpoints
onSelect(selections) => void-Called with selected files
onclose() => void-Called when modal closes

Server requirements

The FilePicker expects these API endpoints (included in the JST template):

  • GET /api/files/list — personal + team file listings
  • POST /api/files — upload file (FormData with file + scope)
  • GET /api/files/[name]/view?scope=… — view/preview file
  • GET /api/files/[name]/download?scope=… — download file