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.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.