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

How to use this without input #20

Open
wallythewebdev opened this issue Aug 28, 2020 · 2 comments
Open

How to use this without input #20

wallythewebdev opened this issue Aug 28, 2020 · 2 comments

Comments

@wallythewebdev
Copy link

HI there -

I tried to rewrite some of the code so that I could reference a file path and use that / instead of using a HTML input file -

After a fairly large amount of searching my losing my mind a little and was wondering if I could ask for a little help.

Can you reference a local file path (relative to your react src folder i.e. src/assets/data.xlsx) and require that into the react app - then have the code covert that to a JSON object which your react app can populate a component with?

Thank you for any help in advance,
Wally

@ashishd751
Copy link
Owner

ashishd751 commented Aug 29, 2020 via email

@NotBestButUnique
Copy link

Hi Ashish,
Hope you are well. The thing we want to achieve means me and wallythewebdev (above developer) is that we have an excel file but we don't want to select it manually, instead, it can be selected automatically by serving a file name or file path.
Likewise, so can you please help us.

More specifically, we want to use excel in useEffect when component loads.

Thanks & Regards,
Muhmmad Bilal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants