Well bodmin, all of our help and it still isn't working. Of course, your responses aren't helping us help you either. My crystal ball is in the shop for repairs now and my mindreader is on vacation.* So until then, you need to offer more for us to go on. Are you getting any errors in your webserver logs? Is the webpage returning a 500 error? Are you certain that you have a field as such: <input type="file" name="uploaded_file">? You are running with use strict; use warnings; use diagnostics; right? Have you tried perl -c myscript.cgi? Does the file that you are uploading contain anything? We just need more information to figure out what is going on.

* Sorry for the sarcasm. Your script should work if everything else is as I would assume it to be.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1


In reply to Re: Upload a file from a web form by antirice
in thread Upload a file from a web form by bodmin

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.