Forums

Avoid file upload duplicates

stojsins 07 May, 2019
Hello.

I have the same problem with implementation of file duplicate validation check in Chronoforms v5, and I managed to resolve it (more about in topic Avoid file upload duplicates).
Now I must migrate that form from CF 5 to CF 6, and I have managed to setup everything except file duplicate validation.

Is there a someone who can tell me how can I setup file duplicate validation?
I'm using 4 file upload elements in my form, and I will like to prevent user to upload files with the same names.

Thank you in advanced.
Max_admin 07 May, 2019
You better do this with PHP, use a PHP action, return true or false after you do the check, then use IF Conditions action and redisplay the form if the PHP returns false.

The code can check the $_FILES array for files names.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.