Skip to content
Back

Upload CSV to Database via node.js functions not the console

  • 0
  • 3
  • Self Hosted
  • Functions
  • Databases
LordHaywood
5 Oct, 2025, 20:47

Is this possible?

TL;DR
Upload CSV to database via node.js functions are not working. User attempted to insert rows manually in version 1.7.4 but it took over 15 minutes for 50k+ rows. The suggestion is to use a different CSV parsing library like https://www.npmjs.com/package/csv-parser. Additionally, there might be issues with the fetch method due to dependencies installed, so check the Node.js version (v22.14.0) for any conflicts.
5 Oct, 2025, 21:11

Or even just using the node-sdk?

6 Oct, 2025, 00:27

You can use a node lib to parse the CSV and use service side functions to create the data

6 Oct, 2025, 08:23

I have tried but get this error:

6 Oct, 2025, 08:24

FYI

6 Oct, 2025, 08:25

Also avoiding the functions part as tried to insert rows manually in 1.7.4 but takes more than 15 mins for 50k+ rows

6 Oct, 2025, 08:35

you can try bulk methods?

6 Oct, 2025, 08:35

no i meant use another csv parsing library

6 Oct, 2025, 08:35

InputFile does not support csv

6 Oct, 2025, 08:36
6 Oct, 2025, 08:36

I'm on self hosted 1.7.4 of appwrite, and think TableAPI is not working until is on 1.8...

6 Oct, 2025, 08:42

Same issue

6 Oct, 2025, 08:44

can you share the code?

6 Oct, 2025, 08:45

Here

6 Oct, 2025, 09:08

Using this now

7 Oct, 2025, 21:23

what version of node do you have? Some dependency you installed may have screwed up the fetch method

14 Oct, 2025, 18:18

v22.14.0

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more