in reply to Re: Re: Re: Yet another CGI Upload problem - not like the others!
in thread Yet another CGI Upload problem - not like the others!

Hello Tachyon, Firstly, thanks for the help. I'm constantly amazed at how helpful people are & how good the quality of the advice is here. Secondly, I wanted to tell you how far I've got with it! I've tried the first approach & it's given me some feedback, the meaning of which is not clear to me. The file does not appear to be making it to the server, the blessed? reference appeared as follows:
'.tmpfiles' => { '3' => { 'info' => { 'Content-Disposition' => 'form-data; name="file +"; filename="C:\\stu\\putty\\stu.txt"', 'Content-Type' => 'text/plain' }, 'name' => bless( do{\(my $o = '/usr/tmp/CGItemp10026') +}, 'TempFile' ) } },
And:
'file' => [ bless( \*{'Fh::fh00001C%3A\\stu\\putty\\s +tu.txt'}, 'Fh' ) ],
The error log now records the reason for death as:
[Wed Dec 11 15:54:14 2002] new_upload.cgi: Use of uninitialized value +in die at <<path to script>>/new_upload.cgi line 70. [Wed Dec 11 15:54:14 2002] new_upload.cgi: Died at <<path to script>>/ +new_upload.cgi line 70. :$
and line 70 is:
while($bytes=(read($fh, $buffer, 1024)or die $q->cgi_error())) { $bytes_read += $bytes; print OUTFILE $buffer; }
I'm stumped. Does this make the reason for the failure clearer to you? Thanks again for your help.