Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: meta field is returning an empty array #128

Open
Smahrt opened this issue Mar 9, 2022 · 3 comments
Open

BUG: meta field is returning an empty array #128

Smahrt opened this issue Mar 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Smahrt
Copy link

Smahrt commented Mar 9, 2022

I'm replicating the example for drag and drop + click upload on the readme and the meta field returns an empty array even when I specify <CSVReader config={{ header: true }} ...

Version: react-papaparse: 4.0.2

Output (console):
image

@Kasi1294
Copy link

Same for me

  1. Whene I read csv file without config's - complete callback method

image

Result :
image

  1. When I use config's - complete callback method
    image

Result:
image

My Observation:

  1. When I config's - complete callback method it is called before parsing the data itself
  2. onUploadAccepted is not calling

Kindly help me reg this If possible give the working code(I am new to react)

@aalbrighti2p
Copy link

I am seeing the same result. The 'meta' property of 1st parameter in onUploadAccepted callback is returning as an empty array.

my config prop
{ header: true, skipEmptyLines: true, dynamicTyping: true, }

@mkotar
Copy link

mkotar commented Feb 21, 2023

The bug is still present. Even if you use demo examples, you get an empty meta. Any suggested time for the fix?

@Bunlong Bunlong added the bug Something isn't working label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants