Skip to main content
Nintex Community Menu Bar
Question

Form Submission Rule - File already uploaded

  • February 20, 2024
  • 7 replies
  • 77 views

Forum|alt.badge.img+3

Hi,

I have a form that has multiple upload boxes.. Is there a way to create a form rule that will limit files being uploaded twice? 

As im saving the files in a sharepoint folder, if its been saved as per a previous upload box action the form fails. 

This is obviously no good for production as this is defiantly a mistake that will happen on the floor. 

Is there a work around other than creating a folder for each box to save into? 

A submit rule would be perfect

7 replies

Deon
Forum|alt.badge.img+10
  • Rookie
  • February 20, 2024

@MatthewSimmons , do you mean a user attaches the same file in different places on the same form, submits and then workflow errors out?

Or User A submits with FILEA and later User B submits with same FILEA and the workflow errors out?


Forum|alt.badge.img+3

Hey D,

Yeah Opt 1.. The user filling out the form uploads a photo at the start of the form and then in a different upload box further down the form uploads the same photo again for whatever reason. 
As the photos are going into the same folder, it opens up room for the form to fail.


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • February 20, 2024

Hi @MatthewSimmons,
 

As you store each file, you could rename it to something unique using the SharePoint Online Rename a file action. Do this regardless of whether there are duplicates or not.


Deon
Forum|alt.badge.img+10
  • Rookie
  • February 20, 2024

Hi @MatthewSimmons , I am not aware of a way to that on the Form itself with Submit Rule and Functions but another option could be to just allow overwrites on the Store a file action…

 


Forum|alt.badge.img+3

Thanks for your replies @SimonMuntz & @Deon 

Ill defiantly find my solution with those suggestions

Appreciate it!


Forum|alt.badge.img+3
  • Nintex Employee
  • February 20, 2024

As you Store the file you can also set Overwrite option to Yes. The workflow action will then not fail.

It seems unlikely that duplicate filename would ever be a valid scenario for photos?

Edit: Deon beat me to it!


Forum|alt.badge.img+3

haha thanks @BarryCairns