Falazar,
for what do you have the line :
use CGI qw(:standard);
in your code. You do not instantiate a cgi object, you do not use any of cgi.pm's objects functions. So I guess that you do not have a problem with cgi.pm but without :-) and your server could also simply deny file uploads. Did you check for that?
Have a nice day
All decision is left to your taste
Update
Well, you might better use a separate script to upload your files as
Hero Zzyzzx provided one. While looking at yopur script I realized that you invoke your script to let it call itself in case someone wants to upload a file. That means to me that each time your script runs its running with a useless half of code :-). So better split em up into two scripts or just use the one if fileuploading is all you need.
But I highly recommend to you to go and to read
Ovid's wonderfull
Web Programming with Perl course. Thats a lot of good and interesting stuff about CGI (well, and Perl).
nuff said, enjoy your day :-)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.