I realize this isn't a problem with the module, but rather a lack of skill. I have a webform which has a file upload component. I would like to check if the file specified has already been uploaded and give the user a 'duplicate filename' error message if the file was previously uploaded. I have tried using both hook_form_alter and the Webform Validation module, but I can't find where I can capture the file component value prior to submitting the form. Any help would be greatly appreciated.

Comments

Liam Morland’s picture

You make your own custom validation rule and do whatever checks you want.

keschl’s picture

The problem is I haven't been able to capture the filename which is being uploaded. I believe it is stored in $formstate['webform']['component_tree']['children']['1'][value].

keschl’s picture

Issue summary: View changes

corrected grammar

Liam Morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer supported. If this issue exists in a later version of webform_validation, please re-open and update the version number.