Skip to content

How to deal with a csv file from a html page in a fetch() POST request. #2914

Answered by Inrap
Inrap asked this question in Q&A
Discussion options

You must be logged in to vote

the problem was that fetch is async so datafinal was empty. I moved the fetch inside the load event. Now it is good.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@laurenceisla
Comment options

Answer selected by Inrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants