Forum OpenACS Q&A: Who to attach files in Forum?

Collapse
Posted by Christof Spitz on
I mounted Attachments in an subdirectory 'attach' under the Forum's URL. I a post I can attach the file, but when I press Ok, there is an server error. Any idea? TIA.

Server Error:

expected boolean value but got ""
    while executing
"if {[parameter::get -parameter "StoreFilesInDatabaseP" -package_id $package_id]} {
    set indbp "t"
        set storage_type "lob"
    } else {
    set ind..."
    (procedure "fs::add_file" line 4)
    invoked from within
"fs::add_file  -name $upload_file  -item_id $file_id  -parent_id $folder_id  -tmp_filename ${upload_file.tmpfile} -creation_user $user_id  -creation_ip..."
    ("uplevel" body line 53)
    invoked from within
"uplevel {
          ad_page_contract {
    script to recieve the new file and insert it into the database

    @author Kevin Scaldeferri (mailto:kevin@arsdigita...";
    (procedure "code::tcl::/var/lib/aolserver/openacs/packages/attachments/w..." line 2)
    invoked from within
"code::tcl::$__adp_stub"

....

Collapse
Posted by Dave Bauer on
It's looking at the StoreFilesInDatabaseP paramtere for the file-storage package instance you have associated with attachments. Apparently you have an empty string in there instead of 1 or 0.
Collapse
Posted by Christof Spitz on
Thank you, Dave. Actually I don't know how I have to associate the file-storage package with attachments 😟 Sorry, quite stupid ...