Forum OpenACS Q&A: Problem with new-file-storage

Collapse
Posted by James Harris on

When I try to upload a file to the new storage module on my system, I get a server error with the following message.

[02/Jul/2001:16:11:42][12033.12294][-conn5-] Error: invalid 
command name "fs_generate_filename"
invalid command name "fs_generate_filename"
    while executing
"fs_generate_filename $client_filename $file_id $version_id"
    invoked from within
"if [empty_string_p $url] {

    # get the file from the user.
    # number_of_bytes is the upper-limit
    set max_n_bytes [ad_parameter MaxNumberOfBy..."
    (file "/var/lib/aolserver/servers/defaultacs/www/new-file-
storage/upload-new-2.tcl" line 92)
    invoked from within
"source $ad_conn(file)"
    (procedure "ad_handle_abstract_url" line 67)
    invoked from within
"ad_handle_abstract_url cns325 {}"

I read somewhere that I may need to manually change some things to use this module. Is there any documentation around? I can't find anything under /doc.

Collapse
Posted by Peter Alberer on
The problem is that fs_generate_filename is defined in /tcl/new-file-storage-defs.tcl.off which is, as the .off implies not loaded by default. You also need to import the necessary data structure from /www/doc/sql/new-file-storage.sql. By default the old file storage system is used.
Collapse
Posted by James Harris on
Thanks Peter.  It seems to work well now.