# Store multiple images per item in your collection with Media Gallery fields

**URL:** <https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931>\
**Category:** Show and tell\
**Tags:** tips, code, cms, wix-stores\
**Created:** [October 18, 2018, 11:22am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931 "2018-10-18T11:22:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![shay-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/shay-wix/32/669_2.png) [@shay-wix](https://forum.wixstudio.com/u/shay-wix)\
**Post date:** [October 18, 2018, 11:22am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/1 "2018-10-18T11:22:40Z")

</div>

Media Gallery fields in the Content Manager are used to store multiple images in one field in your collection. You can then easily display the images in a Gallery element on your site.

For example, let’s say you have a real estate site. You created a database collection with all the properties you manage, and you want to include photos of the interior and exterior of each property. Using a Media Gallery field, you can upload all the photos you have to a single field in each item in your collection. You can provide a title and description for each photo right in the gallery.

Read more at [https://support.wix.com/en/article/working-with-media-gallery-fields](https://support.wix.com/en/article/working-with-media-gallery-fields)

 ![](https://us1.discourse-cdn.com/wix/original/3X/0/c/0cae93fabf4bf2dd4eb650ea692d41829e83996e.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/7/6/761ce03506098a166387f2c78d2dcbed79bfbb6b.png)

---

<div class="post-metadata">

**Author:** ![RobertHamilton](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/roberthamilton/32/80382_2.png) [@RobertHamilton](https://forum.wixstudio.com/u/RobertHamilton)\
**Post date:** [October 18, 2018, 12:23pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/2 "2018-10-18T12:23:39Z")

</div>

Wow - thank you so much, amazing!

Can i ask, how can a site user upload multiple items to this field?

---

<div class="post-metadata">

**Author:** ![vortex-club](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/vortex-club/32/1310_2.png) [@vortex-club](https://forum.wixstudio.com/u/vortex-club)\
**Post date:** [October 18, 2018, 12:51pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/3 "2018-10-18T12:51:19Z")

</div>

I made a workspace on my site for the moderators to send content, I do not want to have to open the editor every time I need to add image to your gallery.

This is in fact a veryb om resource that everyone expected including me, thank you, now all you have to do is wait and see if they will add some interaction with the user inputs mainly with the upload button.

---

<div class="post-metadata">

**Author:** ![thrishtilabs](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thrishtilabs/32/950_2.png) [@thrishtilabs](https://forum.wixstudio.com/u/thrishtilabs)\
**Post date:** [October 18, 2018, 6:50pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/4 "2018-10-18T18:50:46Z")

</div>

Hi @Shay…

Yes this is a required feature… Please let us know if its being planned/developed. If we can insert multiple images, we also need to upload multiple images. thanks

---

<div class="post-metadata">

**Author:** ![freedfoxworldwide](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/freedfoxworldwide/32/876_2.png) [@freedfoxworldwide](https://forum.wixstudio.com/u/freedfoxworldwide)\
**Post date:** [October 19, 2018, 3:43am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/5 "2018-10-19T03:43:49Z")

</div>

@Robert, I tried it just recently and it is very simple. You just need to add a media gallery column on the database and from there, select the images.

---

<div class="post-metadata">

**Author:** ![parker67](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/parker67/32/6676_2.png) [@parker67](https://forum.wixstudio.com/u/parker67)\
**Post date:** [October 19, 2018, 1:34pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/6 "2018-10-19T13:34:17Z")

</div>

@robert  
Are you talking about actually letting the user upload via an upload button to get images uploaded to the media gallery field?

Or are you talking about populating the gallery from the media manager that is already loaded with images you have uploaded?

As myself I am in need of having customers load up images (multiple at a time) to be able to display in different ways…yet I am not finding a semi simplistic way to do it at all…

@shay

Are there any solutions for multiple media uploads to a collection for a user? I’ve been looking over the forums and seems like this would be a pretty easy fix to implement… Unless I am missing something here. I am pretty new here so apologies in advance if i have overlooked any solutions.

Thank you!

---

<div class="post-metadata">

**Author:** ![parker67](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/parker67/32/6676_2.png) [@parker67](https://forum.wixstudio.com/u/parker67)\
**Post date:** [October 20, 2018, 5:45pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/7 "2018-10-20T17:45:06Z")

</div>

Well here is my solution for now:

While they are providing ongoing effort into media management this is my workaround.

I have outsourced some of my media upload requirements to a digital (media) asset management company.  
In the mean time I’m building API’s to store and fetch images there with. I am getting real nice solutions with that, including video upload etc…etc…

May be worth some effort for anyone looking to do similar functions until more features are offered here…and as well as they have done here at Wix…I am sure it will be outstanding once completed…

Keep up the great work folks!!

---

<div class="post-metadata">

**Author:** ![solisaguero](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/solisaguero/32/6510_2.png) [@solisaguero](https://forum.wixstudio.com/u/solisaguero)\
**Post date:** [October 23, 2018, 7:42am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/8 "2018-10-23T07:42:19Z")

</div>

I’ve been looking for this for weeks!  
Dead easy to implement, yet the gallery is not displaying the images properly (standard Thumbnail gallery)  
And also I get this: “Wix code SDK Warning: retrieving items from a Pro Gallery is only supported after the items have been set via code”, why can it just work without code?

 ![](https://us1.discourse-cdn.com/wix/original/3X/4/2/424459721394cd1202781d87764354f52d95e933.png)  
It’s not showing just one at time, it smashes them together

---

<div class="post-metadata">

**Author:** ![vortex-club](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/vortex-club/32/1310_2.png) [@vortex-club](https://forum.wixstudio.com/u/vortex-club)\
**Post date:** [October 23, 2018, 6:00pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/9 "2018-10-23T18:00:05Z")

</div>

I’m not sure which galleria you’re using, but try to see if its settings are in (cut) or (adjust), and from what I know, you do not need code to display items in the gallery and only connect to the database.

But I could be wrong and just a guess.

---

<div class="post-metadata">

**Author:** ![shay-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/shay-wix/32/669_2.png) [@shay-wix](https://forum.wixstudio.com/u/shay-wix)\
**Post date:** [October 24, 2018, 5:57am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/10 "2018-10-24T05:57:16Z")

</div>

You can do it with some code. Use an upload button and then some code to push an additional image to the gallery field.

---

<div class="post-metadata">

**Author:** ![vortex-club](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/vortex-club/32/1310_2.png) [@vortex-club](https://forum.wixstudio.com/u/vortex-club)\
**Post date:** [October 24, 2018, 7:15pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/11 "2018-10-24T19:15:29Z")

</div>

wow that’s good news, i’ll search on, thank you.

---

<div class="post-metadata">

**Author:** ![thomas](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@thomas](https://forum.wixstudio.com/u/thomas)\
**Post date:** [October 25, 2018, 5:25am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/12 "2018-10-25T05:25:35Z")

</div>

@shay-wix Do you have or is there an example code for this?

I’m guessing it still wouldn’t allow users who upload images to ‘reshuffle’ their uploads easily?

Many thanks!

Thomas

---

<div class="post-metadata">

**Author:** ![ivana-machado](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ivana-machado/32/1877_2.png) [@ivana-machado](https://forum.wixstudio.com/u/ivana-machado)\
**Post date:** [October 28, 2018, 1:52pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/13 "2018-10-28T13:52:15Z")

</div>

Hi! Have you sent the images to the gallery (media gallery field on database) by code? If so, can you please share the coding?

---

<div class="post-metadata">

**Author:** ![ivana-machado](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ivana-machado/32/1877_2.png) [@ivana-machado](https://forum.wixstudio.com/u/ivana-machado)\
**Post date:** [October 28, 2018, 1:53pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/14 "2018-10-28T13:53:28Z")

</div>

Does anyone know how to send multiple images to this media gallery field by code? I can’t find any example, and I am struggling with it. ☹

---

<div class="post-metadata">

**Author:** ![thrishtilabs](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thrishtilabs/32/950_2.png) [@thrishtilabs](https://forum.wixstudio.com/u/thrishtilabs)\
**Post date:** [October 28, 2018, 2:30pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/15 "2018-10-28T14:30:00Z")

</div>

Hi @ivana-machado  
I have done it… But I can’t select and send multiple images at once… I have written a code where we need to select each image individually after each upload…

---

<div class="post-metadata">

**Author:** ![ivana-machado](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ivana-machado/32/1877_2.png) [@ivana-machado](https://forum.wixstudio.com/u/ivana-machado)\
**Post date:** [October 28, 2018, 2:37pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/16 "2018-10-28T14:37:46Z")

</div>

@thrishtilabs Hi Nithin! Would it be possible for you to share your solution with me?! I couldn’t even find a way of sending them to the media gallery field… ☹ Thank you!!

---

<div class="post-metadata">

**Author:** ![thrishtilabs](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thrishtilabs/32/950_2.png) [@thrishtilabs](https://forum.wixstudio.com/u/thrishtilabs)\
**Post date:** [October 28, 2018, 5:32pm UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/17 "2018-10-28T17:32:43Z")

</div>

@ivana-machado Hi I have posted the code in your different post regarding the same as that code fits ur post than here…

> **[User Member Add Media to Gallery - by Code | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/user-member-add-media-to-gallery-by-code)**
>
> Hi! 
> I am super excited to finally have an option of gallery media on database (yaay!)
> 
> In my case, I need the user member to be able to add the images to a gallery (media gallery field type on database).
> 
> Is there a way to do it so the user can...

---

<div class="post-metadata">

**Author:** ![mdfahimtajbir](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mdfahimtajbir/32/7775_2.png) [@mdfahimtajbir](https://forum.wixstudio.com/u/mdfahimtajbir)\
**Post date:** [December 27, 2018, 8:45am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/18 "2018-12-27T08:45:00Z")

</div>

@shay-wix can i get the code for it.  
thanks

---

<div class="post-metadata">

**Author:** ![mdfahimtajbir](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mdfahimtajbir/32/7775_2.png) [@mdfahimtajbir](https://forum.wixstudio.com/u/mdfahimtajbir)\
**Post date:** [December 27, 2018, 8:50am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/19 "2018-12-27T08:50:12Z")

</div>

i would like my user to upload images to the media gallery field with a upload button. which will be store in the same database with all there information.

---

<div class="post-metadata">

**Author:** ![jeff-haskins](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jeff-haskins/32/1864_2.png) [@jeff-haskins](https://forum.wixstudio.com/u/jeff-haskins)\
**Post date:** [January 3, 2019, 12:52am UTC](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931/20 "2019-01-03T00:52:52Z")

</div>

@Shay How does one set up where site user/visitor can use upload to submit images/info to a media gallery.

[Next page](https://forum.wixstudio.com/t/store-multiple-images-per-item-in-your-collection-with-media-gallery-fields/1931.md?page=2)
