Multiple image upload and storing in an array in appwrite
Unanswered
New Zealand posted this in #help-forum
New ZealandOP
Hi everyone, I wanted to know if there is a way to have an array of imageIds and an array of imageUrls and then link corresponding imageIds with imageUrls so that I can render multiple images using these two arrays. Or is there a better way to add multiple images to Appwrite?
4 Replies
@New Zealand Hi everyone, I wanted to know if there is a way to have an array of imageIds and an array of imageUrls and then link corresponding imageIds with imageUrls so that I can render multiple images using these two arrays. Or is there a better way to add multiple images to Appwrite?
Yes, you can create a array with numbers equal to length of array, and use like imageUrl[i], and imageId[i]
A better approach is to create a object in the array with url & id
A better approach is to create a object in the array with url & id
Hey @New Zealand
Updates?
New ZealandOP
Hii Thank you, I will try to implement it and then update ohkayy