'Importing excel file in a form then with onSubmit fetch POST it to an API endpoint
I have an to make an app that will connect with an API. Through this app i will have to send info to the given API. The required parameters are actually in the first row of the excel file (the headers).
Solution 1:[1]
Are you using axios? If yes then you can do something like this. https://github.com/axios/axios#axios-api
axios.post(url,
{
// for GET requests
params: {
foo: bar
},
// for POST .etc requests
data: {
foo: bar
},
}
);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | IWatchJapaneseWeatherRepotto |
