Question

Check for duplicate attachments

  • 15 May 2024
  • 2 replies
  • 21 views

Userlevel 3
Badge +16

Hi,

 

When a user attaches multiple attachments to a K2 form, is there a way to detect if the same file has been added more than once? If so, prevent them from doing so?

 

I need a way to prevent a form submission, if a duplicate attachment (with the same name) as mistakenly been added.

 

Is there some jquery that can check the attached files in a list view (as they are added) to check for duplicate file names and prevent them adding it?

 

Thanks


2 replies

Badge +1

Hey Sharpharp1 were you able to get to a solution to detect multiple attachments? 

Userlevel 3
Badge +16

Hey Sharpharp1 were you able to get to a solution to detect multiple attachments? 

Unfortunately not, still looking for a solution. 

Reply