Forum OpenACS Q&A: Re: Problem with File Manager

Collapse
Posted by Richard Hamilton on
ad_return_complaint requires two parameters, and exception count and exeption text. The file-upload-2.tcl file calls ad_return_compaint if the file extension fails certain tests, but it omits the exception count - hence the error.

Modifying the code to include an exception count of 1 sorts it out i.e:

if {![empty_string_p $title] && [empty_string_p [file ext $title]]} {
ad_return_complaint 1 "explanitory text"
ad_script abort
}

This proc is called in more than one place so this needs updating in all cases.

Regards
Richard