Answers.Body: <p>If anyone still has this problem, I can confirm that upgrading to at least 4.7.31 fixes it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-12T16:38:45.060Z
Answers.LastActivityDate: 2018-07-12T16:38:45.060Z
Answers.UserDisplayName: naomi
Answers.Body: <p>I am able to reproduce the issue in GiftAid.</p>
  
  <p>However, this appears to be a CiviCRM issue. I have also tested with a standard multi-submit custom fieldset containing a file upload field by submitting two different picture files. When I click on "View" submission, the same picture got shown in the modal.</p>
  
  <p><a href="https://i.sstatic.net/Ax9Ky.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ax9Ky.png" alt="first submission"></a></p>
  
  <p><a href="https://i.sstatic.net/STyoz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/STyoz.png" alt="second submission"></a></p>
  
  <p>I would recommend to open an issue in <a href="https://issues.civicrm.org/jira/secure/Dashboard.jspa" rel="nofollow noreferrer">CiviCRM core Jira</a>. If you are a developer yourself, you are more than welcome to submit a fix.</p>
  
  <p>Best</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-03T15:12:58.500Z
Answers.LastActivityDate: 2017-08-07T15:24:08.887Z
Answers.LastEditDate: 2017-08-07T15:24:08.887Z
Answers.UserDisplayName: Guanhuan
Body: <p>I have a gift aid issue - basically when you upload scanned declarations against a contact, they don't show each scanned image but only the first one repeadly (for each gift aid declaration entry). The rest of the text data remains the same for each entry.</p>
  
  <p>The uploaded image I have added should make things clear - the red circles indicate a scanned declaration. The issue is that they are all the same image even though in the database I see different images referenced.</p>
  
  <p>Also, when I click on 'Edit Gift Aid Declaration', clicking on the images for each entry shows the different uploaded images properly. So that is a workaround but not good as a HMRC officer won't be happy if someone doesn't know of that workaround!</p>
  
  <p>Any help or guidance would be much appreciated. I had a stab at trying to see where in the codebase this bug is happening but its still a puzzle.</p>
  
  <p>Cheers.</p>
  
  <p><a href="https://i.sstatic.net/ZYiQf.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZYiQf.jpg" alt="First scanned image being duplicated for each different entry even when each entry has a different scanned image"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-03T15:13:13.183Z
Comments.Text: Which version of CiviCRM & GiftAid extension are you using?
  
  Best
Comments.UserDisplayName: Guanhuan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-03T17:05:12.313Z
Comments.Text: CiviCRM 4.7.22 and CiviCRM UK GiftAid is 3.0.
Comments.UserDisplayName: Sovereign108
Tags: <civicontribute><contacts><custom-fields><gift-aid-extension><upload>
Title: Gift aid uploaded declarations are only showing the first image for each entry
ThreadText: # Gift aid uploaded declarations are only showing the first image for each entry
  
  (Asked by: username_0 on 2017-08-03)
  
  I have a gift aid issue - basically when you upload scanned declarations against a contact, they don't show each scanned image but only the first one repeadly (for each gift aid declaration entry). The rest of the text data remains the same for each entry.
  
  The uploaded image I have added should make things clear - the red circles indicate a scanned declaration. The issue is that they are all the same image even though in the database I see different images referenced.
  
  Also, when I click on 'Edit Gift Aid Declaration', clicking on the images for each entry shows the different uploaded images properly. So that is a workaround but not good as a HMRC officer won't be happy if someone doesn't know of that workaround!
  
  Any help or guidance would be much appreciated. I had a stab at trying to see where in the codebase this bug is happening but its still a puzzle.
  
  Cheers.
  
  [![First scanned image being duplicated for each different entry even when each entry has a different scanned image](https://i.sstatic.net/ZYiQf.jpg)](https://i.sstatic.net/ZYiQf.jpg)
  
  **Tags:** civicontribute, contacts, custom-fields, gift-aid-extension, upload
  
  > **Comments:**
  > **username_1**: Which version of CiviCRM & GiftAid extension are you using?  Best  
  > **username_0**: CiviCRM 4.7.22 and CiviCRM UK GiftAid is 3.0.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-07-12. Score: 1
  
  If anyone still has this problem, I can confirm that upgrading to at least 4.7.31 fixes it.
  
  
  ---
  
  ### Answer by username_1 on 2017-08-03. Score: 0
  
  I am able to reproduce the issue in GiftAid.
  
  However, this appears to be a CiviCRM issue. I have also tested with a standard multi-submit custom fieldset containing a file upload field by submitting two different picture files. When I click on "View" submission, the same picture got shown in the modal.
  
  [![first submission](https://i.sstatic.net/Ax9Ky.png)](https://i.sstatic.net/Ax9Ky.png)
  
  [![second submission](https://i.sstatic.net/STyoz.png)](https://i.sstatic.net/STyoz.png)
  
  I would recommend to open an issue in [CiviCRM core Jira](https://issues.civicrm.org/jira/secure/Dashboard.jspa). If you are a developer yourself, you are more than welcome to submit a fix.
  
  Best
  
  
  ---
  
  