Skip to content

Import Upload

The first step of an import: drop a CSV or Excel export, see it read the way you would read it, and fix the encoding, the separator or the header before any column is mapped. Vietnamese files saved in an old font are caught and converted on request.

On this page

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

onRead
(read, file, opts) => void
Every read: the first and each reread from the encoding, separator and header menus. read.status is ok, too-large, unreadable or legacy-font.
source
File
A file to read as if it was dropped, such as a sample.
read / file
ReadResult / { name, size }
Show a result you read yourself (on a server, say) instead of reading here.
locale
string
"vi" tries Windows-1258 before 1252 and looks for TCVN3 and VNI text.
limits
ImportLimits
Default50 MB, 200,000 rows
Above them the block says so and asks for a smaller file or a server import.
accept
string
Default".csv,.tsv,.txt"
File types for the picker.
sample
ReactNode
A line under the drop zone, such as links to sample files.
previewRows
number
Default5
Rows in the preview.

Accessibility

  • The drop zone is a button that opens the file picker; dropping is never the only way.
  • Encoding, separator and header are labelled controls next to the preview, and a change rereads the file without moving focus.
  • The old-font alert names the problem in text and shows the names before and after as a table with headers.

When to use

When to use

  • The first step of an import: read a CSV in the browser and fix encoding, separator and header.
  • Files saved in Windows-1258, UTF-16 or an old Vietnamese font.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Import Upload to my app and wire it to my own data.
  • I need the first step of an import: read a CSV in the browser and fix encoding, separator and header. Set that up with the Knowns UI Import Upload.
  • Which Import Upload props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "import-upload" }) and search_docs({ query: "import upload" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Import Upload, or found something off? We read every message.