Issue Bug Closed

#17350Javascript mailform validation doesn't check fields of type 'file'

Loek Hilgersom 06/01/07, 12:57 updated 08/06/10, 13:20

Description

If you set a file-upload field in the standard Typo3 mailform as required, you can still send the form even if no file is selected – the check on file-input fields is missing.

Solution:
add 1 line between line 74 and 75 in t3lib/jsfunc.validateform.js

switch(type)    {
case text case textarea case “file”: // LH: add this line to check file fields
value = fObj.value;
break;

This is solution is the same for v4.1.1 and 4.0.6

(issue imported from #M5726)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.