ocordeiro / big-csv-upload

Open big CSV files in browser and send batchs of lines to backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Big CSV file Upload

Open big CSV files in browser and send batches of lines to backend.

How to use

import { DropArea, FileApi } from './src/index.js';

const dropArea = new DropArea("drop-area", (files) => {
    const fileApi = new FileApi(files[0]);
    fileApi.onChunkLines = (lines) => {
        // fetch(...)
    };

});

keywords

  • FileStream
  • Drag and Drop
  • TextDecoder
  • FileReader

About

Open big CSV files in browser and send batchs of lines to backend.


Languages

Language:JavaScript 50.2%Language:CSS 33.3%Language:HTML 16.5%