enpoint to receive file and store in database

Answered

I need to create an endpoint that receives a csv file. And that inserts the data into the database.

Some required validations:

- Validate the file headers The headers should be: bar_code, price, provider_rut, pharmacy_rut

- the file type should be csv.

I've tried to do it, but, xano returns an error when the file is sending in Post method.

Here the error:

here and test data csv in attachments

regards

3 replies