Forum OpenACS Development: NaviServer on Windows: ns_mktemp returns c:/tmp/ns-a01216

Request notifications

Hi,

ns_getform in form.tcl calls ns_mktemp without parameters when uploading a file, which returns and invalid "c:/tmp/ns-xxxxxx" file on NaviServer 4.99.16d4, which breaks ns_getform.

It used to work with AOLserver 4.5.1.

Cheers,
Frank

Hi!

Maurizio just helped me.
NaviServer requires an addition parameter in the ns/parameters section named "tmpdir":

ns_param tmpdir c:/project-open/servers/$server/tmp

Thanks Maurizio!
Frank

The tmpdir can be specified as follows:
http://openacs.org/forums/message-view?message_id=4880572

see as well:
http://openacs.org/bugtracker/openacs/bug?format=table&f_state=8&bug_number=3308&project_id=56106

if there is a windows-specific startup file, it might be a good idea to define the tmpdir there.