How to upload many images in DB?

Hello guys,
I’ve been working on moving my old Wix web site to Wix Code features. Immediately I stumbled on lack of flexibility of creating templates and connecting them to DB (Collections). In my old version of the site, I have many galleries, some of which have 50+ images in them. It’s not feasible and non practical to create 50+ columns in the corresponding DB to accommodate all of them. How I would imagine this feature: the same way you select an image value for image column, you should be able to check multiple images. Them, Wix should figure out the data format to store multiple images and feed them to templates and models. I couldn’t find a practical way of doing this, thus the highly awesome repeater doesn’t work for me :frowning: I want galleries in it.

1 Like

Alexey, I would like to help you, but I do not understand what you are trying to achieve. You mention “templates” and “models”, concepts unknown in Wix Code.
Could you simply describe in plain English what you are looking for? Do I understand correctly that you balk at adding 50+ image columns to a row? If that is part of your problem, why not implement a 1-n relation between “owner” of the gallery and his n images? Have you searched this forum? It has come up before.

Hello Giri,
The term “template” and “model” is quite universal to any programming language. By saying “template” I was referring to any dynamic page or element, whose state is created based on the data model from the database (aka Collection in Wix language).
I don’t want to create 50+ rows or columns in another table, because it’s super tedious (there is no automation of this process in Wix, right? Import won’t work in this case because all my images are already in Wix storage). The ideal user friendly way would be extend the Image column type to allow a user to choose any number of images in the image picker. So I could click whatever images I want to associate with the current row and store them as a collection in one column. It’s pretty obvious feature I think that a lot of people would find handy. If this would be allowed, then your Repeater becomes even more powerful.

2 Likes

I would appreciate this function as well. i am looking for a way to link each picture of the gallery of the index page with a dynamic page that includes a gallery of images to be loaded from the database. I understand for now this is only possible adding code.