Body: <p>I have a situation where authorized users can upload a scan of their passports.  While this doesn't happen often, there are times where various users will upload &quot;Passport.jpg&quot; as necessary.  While the upload seems to work, it appears as if we come across an issue that when we go back to look at the picture, the wrong picture is referenced.  Only the &quot;Passport.jpg&quot; that came from the first user will show up.  My initial thinking is that somewhere between the Civi and picture storage collection, the query looks for the name of the file rather than some other identifying field.  Is my suspicions accurate?  If so, how do I prevent this confusion from happening again?  We are using Civi 5.31.1 and Drupal 7.  The following screenshot is taken from the civicrm_file table and only showing entries where the uri field is exactly &quot;passport.jpg&quot;.<a href="https://i.sstatic.net/cnpeL.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cnpeL.jpg" alt="Passport Image Entries" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-26T00:23:25.137Z
Comments.Text: Normally there's a hash appended. What feature/technique is being used for the upload?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-26T22:55:10.190Z
Comments.Text: We're using the standard Drupal webforms picture upload functionality. I believe that this is accomplished through the webform_civicrm module.
Comments.UserDisplayName: J. Rolfs
Tags: <contacts><custom-fields><webform-civicrm>
Title: Does Civi rename picture files?
ThreadText: # Does Civi rename picture files?
  
  (Asked by: username_0 on 2021-01-25)
  
  I have a situation where authorized users can upload a scan of their passports. While this doesn't happen often, there are times where various users will upload "Passport.jpg" as necessary. While the upload seems to work, it appears as if we come across an issue that when we go back to look at the picture, the wrong picture is referenced. Only the "Passport.jpg" that came from the first user will show up. My initial thinking is that somewhere between the Civi and picture storage collection, the query looks for the name of the file rather than some other identifying field. Is my suspicions accurate? If so, how do I prevent this confusion from happening again? We are using Civi 5.31.1 and Drupal 7. The following screenshot is taken from the civicrm\_file table and only showing entries where the uri field is exactly "passport.jpg".[![Passport Image Entries](https://i.sstatic.net/cnpeL.jpg)](https://i.sstatic.net/cnpeL.jpg)
  
  **Tags:** contacts, custom-fields, webform-civicrm
  
  > **Comments:**
  > **username_1**: Normally there's a hash appended. What feature/technique is being used for the upload?  
  > **username_0**: We're using the standard Drupal webforms picture upload functionality. I believe that this is accomplished through the webform_civicrm module.  
  
  ---
  
  ## 0 answers
  
  