I use CGI::Fast in a C::A app. But when I upload a file, and use $q->tmpFileName to get the name of the temp file, it returns wrong values. According to the API of CGI.pm, it should return a path in /var/tmp/. But using CGI.pm in the fcgi wrapped variant CGI::Fast seems to change that. The real temp file resides in /tmp as /tmp/fcgid.tmp.some-id!
So it seems I can't access the temp file once my script runs in fcgi mode. Internally, CGI::Fast uses CGI + FCGI but I can't see where the swap in tmp paths happens.
Any hints? Is there a facility in FCGI I am overseeing that tells me the upload temp file location? Can I get the tmp file name directly from the (fcgid) env somehow?