# Select image from a repository or file

**URL:** <https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958>\
**Category:** Ask for Help\
**Created:** [August 16, 2022, 9:51pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958 "2022-08-16T21:51:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [August 16, 2022, 9:51pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/1 "2022-08-16T21:51:33Z")

</div>

The Glide component “Image Picker” lets you add/upload an image from a file but is their a way of selecting from a pre-curated choice of images stored in a Glide table FIRST and if one of those images are not what is needed then select via the current “Image Picker” methods?

In other words a default image picker that FIRST offers a collection of images to choose from and if that is not adequate will default to the ‘Image Picker’ chooser.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 16, 2022, 10:07pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/2 "2022-08-16T22:07:14Z")

</div>

Not with the same image picker, but you could have a choice component with a list of images sourced from one of your tables (if your app is on the new NCM and allows images in the choice component). You could also have an image picker. Both components could point to the same column and if you wanted, you could set visibility on the image picker to only show if the choice value is empty.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [August 16, 2022, 10:11pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/3 "2022-08-16T22:11:24Z")

</div>

Can I pop-up a custom “modal” image picker that allows selecting from a choice component with my images plus a “more” option that would then bring up/pop up the image picker? Is this doable?

---

<div class="post-metadata">

**Author:** ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)\
**Post date:** [August 16, 2022, 10:14pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/4 "2022-08-16T22:14:20Z")

</div>

Also you would need to set up a custom form in order to display the picture your user will select from the choice component.

In your pre-curated picture list, add an option of “Other”, and on the custom form add the image component that will be connected to the same column which would be populated by the choice component so users can see in full screen what they have selected.

Add an image picker option in your custom form and set the visibility of it to “Show when Pre-curated choice component is **Other** ”.

Maybe I am not good at explaining stuff clearly like our experts, but if you are still confused, feel free to book a meeting with me at [Calendly - Hassan Nadeem](http://calendly.com/thenocoder). Would be glad to help you live on call 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 16, 2022, 10:21pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/5 "2022-08-16T22:21:58Z")

</div>

> [@MattLB](#):
>
> Can I pop-up a custom “modal” image picker that allows selecting from a choice component with my images plus a “more” option that would then bring up/pop up the image picker? Is this doable?

Kind of… depends, is this an app or a page. I mean you could do something kind of like that, but probably not exactly like you want. Depending on if it’s an app or a page, you may need some very custom CSS and trickery to pull it off. The image picker uses the device’s image viewer to display images. It’s not really a Glide thing at that point.

> [@Hassan\_Nadeem](#):
>
> Also you would need to set up a custom form in order to display the picture your user will select from the choice component.

Not necessarily. The new NCM includes a choice component with images. Otherwise, yes, this would need to be done with a custom form.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [August 16, 2022, 10:26pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/6 "2022-08-16T22:26:14Z")

</div>

It is an App - I am looking for as simple as possible.

My instinct was to open a new screen with the choices to select and below that an image picker and have them feed the same column.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 16, 2022, 10:42pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/7 "2022-08-16T22:42:04Z")

</div>

Yeah, if you want to keep it simple, I would do something like that.

---

<div class="post-metadata">

**Author:** ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)\
**Post date:** [August 16, 2022, 11:25pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/8 "2022-08-16T23:25:57Z")

</div>

Yes but I think the pictures displayed there are too small. I suggested that to give a better preview of pictures.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [August 16, 2022, 11:35pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/9 "2022-08-16T23:35:01Z")

</div>

I recall a video by @Robert_Petitto with an image carousel. I was going to steal that technique. And then an “other” option that is the image picker.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [August 17, 2022, 11:35pm UTC](https://community.glideapps.com/t/select-image-from-a-repository-or-file/46958/10 "2022-08-17T23:35:03Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
