From: Kent Dahl Date: 2002-09-24T18:00:13+09:00 Subject: Re: CGI Upload Problem "Matthew, Graeme" wrote: > cannot generate tempfile `/tmp/CGI-3474997.10 > > This must be a ruby internal, as it obviously has something to do with the > path construct (ie /) > on Win32( sorry, but in the corporate world they still wont let you use > linux :-( ) > > Any ideas, I have thought of using a javascript function to translate the / > char to a \ for windows compatability, but then it means that my UI has to > handle language specifics IIRC, this shouldn't be necessary, as the underlying system in Windows accepts both / and \ in paths. (Atleast I got pounced on severely when I screwed this up in a ng a few years back.) The problem should rather be: is there a tmp folder on the root of the drive that is current to the process running the webserver? Does the webserver process have the right to write to it? And can you be sure that this doesn't suddenly change? (I don't know if Apache "cd"s around like a madman). As for how JavaScript could solve this problem, I do not understand. JS is completely clientside, so I don't see how it could help you. HTH -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 5. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)