Navigation

File Upload Component

Import local JSON, CSV, or NDJSON files into a pipeline; learn how formats are detected, parsed in-browser, saved in workspace state, and passed downstream.

Last updated:

The File Upload Component serves as a source node that allows you to bring local datasets into your DataLensia workflow.

⚙️ Configuration

PropertyTypeDescription
UploadbuttonTrigger the browser's file picker to select a local file.
FormatenumAutomatically detected (JSON, CSV, NDJSON).

🛠️ Functionality

  1. Local Parsing: Files are parsed directly in your browser. Large files are handled using optimized streaming parsers to prevent UI freezing.
  2. Persistence: The uploaded data is stored within your workspace state, allowing the pipeline to re-run automatically when upstream changes occur or when the workspace is reloaded.
  3. Format Conversion: If a CSV file is uploaded, it is automatically converted into an array of JSON objects for processing by downstream nodes.

🚀 Pro Tip

If you are working with a very large file, consider using a Limit node immediately after the upload to speed up the development of your pipeline.