# Upload New Image to Replace Old

**URL:** <https://community.glideapps.com/t/upload-new-image-to-replace-old/24664>\
**Category:** Ask for Help\
**Created:** [March 23, 2021, 11:20pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664 "2021-03-23T23:20:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 23, 2021, 11:20pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/1 "2021-03-23T23:20:36Z")

</div>

How do I set my “upload new” button to upload a new image to replace the current image that I have instead of creating a whole new entry?

 ![Screen Shot 2021-03-23 at 6.07.13 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/3/93bd0fdcec30d9763813d9a2912fae83dfc48da5.png)

---

<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:** [March 23, 2021, 11:24pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/2 "2021-03-23T23:24:35Z")

</div>

I would set the action to Link to Screen (This Item), and put an image picker on that screen.

---

<div class="post-metadata">

**Author:** ![Cloud\_X](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cloud_x/32/11700_2.png) [@Cloud\_X](https://community.glideapps.com/u/Cloud_X)\
**Post date:** [March 23, 2021, 11:25pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/3 "2021-03-23T23:25:48Z")

</div>

Is it a form ?  
Have you created a button to upload an image ? Image picker maybe ?

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 23, 2021, 11:32pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/4 "2021-03-23T23:32:11Z")

</div>

so I created the button “Upload New” and that takes you to the image picker. But then, when I click “submit,” it still creates a new entry instead of replacing the my current image of the insurance card

---

<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:** [March 23, 2021, 11:33pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/5 "2021-03-23T23:33:14Z")

</div>

What’s your Action on the button?

---

<div class="post-metadata">

**Author:** ![Cloud\_X](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cloud_x/32/11700_2.png) [@Cloud\_X](https://community.glideapps.com/u/Cloud_X)\
**Post date:** [March 23, 2021, 11:34pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/6 "2021-03-23T23:34:04Z")

</div>

You can add an image picker and set the data column to the image column like the following photo

 ![16165425072469102767316329930679](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/e/5ed7cff453525a9e3e3f125dd2b654d21e2842c3.jpeg)  
This way you will replace the old image without adding any rows

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 23, 2021, 11:49pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/7 "2021-03-23T23:49:17Z")

</div>

but I have multiple rows (for different entries) under my image column in my data set, so when I set the data column to image, how does it know which entry to replace the image?

---

<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:** [March 23, 2021, 11:51pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/8 "2021-03-23T23:51:06Z")

</div>

Did you…

> [@Jeff\_Hager](#):
>
> set the action to Link to Screen (This Item), and put an image picker on that screen.

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 24, 2021, 12:14am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/9 "2021-03-24T00:14:19Z")

</div>

![Screen Shot 2021-03-23 at 7.05.13 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/2/b28320bf2ae7dc68fd592b4a92654cc66eeb91e8.jpeg)

When I did what you suggested in my first post, I had my “Upload New” button lead to another image picker. I set action to Link to screen, but I could only link it to the “Files” screen. Thus, instead of replacing my current image, it just created a new entry under my “Files” screen.

Also, thank you for your help and patience! I just joined Glide today, so I’m still learning!

---

<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:** [March 24, 2021, 12:30am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/10 "2021-03-24T00:30:05Z")

</div>

Is your upload button opening a form or is it directly linking to a screen? If it’s opening a form, then it’s always going to add a new row. If you want to update an existing row, then you don’t want to use a form since it will always add a row. Can you show the action settings on your button?

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 24, 2021, 1:17am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/11 "2021-03-24T01:17:08Z")

</div>

ohhhh ok…my upload button is opening a form…so if I’m understanding you correctly now, I should put an image picker on the same screen as my upload button. Then have the action for my upload button be linked to that screen?

---

<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:** [March 24, 2021, 1:24am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/12 "2021-03-24T01:24:27Z")

</div>

No, you should change the action on the button from Open Form to Link to Screen (This Item). This will give you a new screen linked to the same row. On the new screen you can have an image picker that updates the image in that same row.

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 24, 2021, 2:04am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/13 "2021-03-24T02:04:03Z")

</div>

Will try that – thank you!

---

<div class="post-metadata">

**Author:** ![slinn125](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slinn125/32/23855_2.png) [@slinn125](https://community.glideapps.com/u/slinn125)\
**Post date:** [March 24, 2021, 2:07am UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/14 "2021-03-24T02:07:05Z")

</div>

It worked!!! Thank you so much!!

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/upload-new-image-to-replace-old/24664/15 "2024-01-17T16:52:51Z")

</div>


