What i'm trying to do is similar to the student submission form in the example provided by wix. A user fills out a form, uploads an image, and then submits it to a database. The difference is that I would like to submit multiple images instead of just one.
I thought it would be as simple as uploading images to a gallery and then submitting them to the database along with the other information in the form. I was wrong. The images upload to the gallery with no problem. The gallery is linked to the media gallery field in the database. When I click submit, the success message appears, the new entry appears in the database, but when I check the database the medial gallery field is empty.
In the console I also get the following error message.
Wix code SDK Warning: The items parameter of "gallery" that is passed to the items method cannot be set to null or undefined.