Hi,
I've been asked to write a program in perl which receives
an uploaded file, parses it and does some database
operations. I've written the program and it works fine
on my machine (my machine is a Windows NT and has IIS
4.0 as well as Perl 5.6 on it). the problem started
when i moved my perl file to another machine (which is
a test server), and tried to upload a file which was on
my machine's hard drive to the test server.The perl
program runs through without generating any error, but
does not receive the uploaded file's data,i.e. all the
other parameters which i pass to the perl file via the
POST method are being passed correctly, except the text
file which i am uploading.
If i go to the test server and upload a text file which
resides on its hard drive, then the perl program runs
fine. but if it is from one machine to another separate
machine, then the uploaded file seems to be getting
lost somewhere.
I even tried changing the name of the temporary directory
name which is in the CGI.pm file, but to no avail.

Any suggestions ?

In reply to Fil Upload Problem by vipinh

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.