Forum OpenACS Q&A: Re: file-storqage error during "Add File" on 5.1.5 installation

I'm running 5.1.5 code. I was testing this package and I was able to upload a .doc file and a URL, however, I got an error uploading a .jpg and .icon image. It looks like we're choking at the same place.

SQL:
select content_type
from cr_content_mime_type_map
where mime_type = 'image/jpeg'

while executing
"ns_pg_bind 0or1row nsdb0 {
select content_type
from cr_content_mime_type_map
where mime_type = :mime_type
}"
("uplevel" body line 1)
invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql]"
("postgresql" arm line 2)
invoked from within
"switch $driverkey {

I did some greps in the file-storage package and I couldn't find any hints. Does anyone have an guess where this problem could be? Either the content repository area or:

acs-tcl/tcl/00-database-procs.tcl

What do you thinks?