Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2224

Joomla! 5.x Coding • Validation of file field

$
0
0
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 2224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>