Forum OpenACS Development: file widget validation

Posted by Ryan Gallimore on
Is there any reason why the file widget can't fail?

If you forget to select a file when uploading in file storage, you get a rather nasty error which could be avoided if the mandatory requirement was enforced.

ad_proc -public template::data::validate::file { value_ref message_ref } {
Our file widget can't fail
@return true
} {
return 1