Quantcast
Viewing all articles
Browse latest Browse all 2400

Joomla! 5.x Coding • Validation of file field

What is the best way to check that a value has been supplied for a form field of type "file"?

The documentation says that the usual way of giving it the attibute "required= true" does not work. The suggested workaround is to "add a filerequired attribute which can be tested in your own file handling code."

Should this be done in Model / validate? How should it be coded?

Statistics: Posted by CharlieBigley — Mon Sep 16, 2024 6:20 am



Viewing all articles
Browse latest Browse all 2400

Trending Articles