Can I add multiple upload button on one page to allow visitors to upload multiple images? Tried but only the first upload button works.

If you are attempting to use multiple upload buttons that are all connected to the same field, it will not work.

Wix has been working on a multi-file / image upload function (and multi-select ability) … for a while now. Currently the only way to upload multiple images is via code. Search the forum. There are many working examples that you can follow.

Thank you! I’m trying to upload the images to the same collection but different fields. Is this possible?

so how to determine the image content?

e.g. You asked the user to upload the ID card, passport.

So you have to set the label as “ID Card”, then after the user uploaded, use setFieldValue. Then, change the label by code to “Passport”, and keep setFieldValue every time they uploaded.

this is the way to upload multiple stuff using only one button.

Oh I see. Is this a code that I will have to write or can it be done using Wix features?

I was trying to add multiple upload buttons connected to different field items. For instance, the ID card would be connected to a field on the collection that says ID card with an image field type and the passport to another field. Can this be done?