Skip to content
Back

How do I format an array in a CSV file to upload a document

  • 0
  • Databases
  • Cloud
Darius
1 Jul, 2025, 13:35

I want to import a CSV file to create a document on it on the AppWrite website. I have an attribute "name" of type String and "ingredients" which is of type String[]. When creating a CSV file, it look like the following:

name, ingredients Pasta, ["flour", "tomatoes"] Cake,["sugar", "flour"]

But when I upload the CSV file, I receive the error message, that the attribute "ingredients" must of type Array.

To solve this I tried many formats like

  • ["A", "B"]
  • "["A", "B"]"
  • "[A, B]"
  • "['A', 'B']"
  • [A, B]

None of these formats seemed to work.

How do I format the array correctly?

TL;DR
Developers are having trouble formatting an array in a CSV file to upload a document on the AppWrite website. The array should be in JSON format without quotes around the array elements. For example: [element1, element2].
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