Forum OpenACS Q&A: Re: Using "file" widget with ad_form

Collapse
Posted by Dave Bauer on
I needed to declare the form like this:
ad_form -name my_form -html { enctype multipart/form-data } - form {
    {file_var:file(file) {label "Upload file"}}
}
Then i used template::util::file::get_property to get the tmp_filename.