Skip to content

convert uploaded csv to json is not working #170

@sudipzoom

Description

@sudipzoom

Hi Author/ contributors, converting a uploaded csv to a json array (header :value ) is not working with readString.
I needed to introduce extra methodology for the conversion.

onUploadAccepted={(results,file) => handleFileAccepted(results,file)}

function handleFileAccepted(data,file){


}

In above method data is used to show tables on screen using react-papaparse
file is used to read the event.target.results as blob by filereader and then parse that into a readable json array for backend use. here I could not able to use your pacakge react-papaparse.

It is not at all clear that how readString works. I tried a lot but readString always gives me bunch arrays(header arrays, value arrays) . However I request you to clearly mention in docs how does readString work though I did this using another method but it will be helpful for new users if they could utilize the same package. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions