Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: File upload quit working

by Anonymous Monk
on Jan 19, 2012 at 12:23 UTC ( #948770=note: print w/replies, xml ) Need Help??


in reply to File upload quit working

I fixed it. I guess, even though I am using CGI, I needed to define a new cgi:
my $q = new CGI; my $filename = $q->param("incoming"); my $handle = $q->upload("incoming");
That did it.

So I fixed it myself. Thank you for taking the time to offer a suggestion. There were no errors at all.

Richard

Replies are listed 'Best First'.
Re^2: File upload quit working
by Anonymous Monk on Jan 19, 2012 at 12:42 UTC

    So I fixed it myself. Thank you for taking the time to offer a suggestion. There were no errors at all.

    CGI offers two interface, oo interface  CGI->new ... and functional interface  use CGI qw/ param upload /; ...

    If you're trying to use the functional interface, but you fail to import param/upload, your program would have died with

    $ perl -MCGI -e " param() " Undefined subroutine &main::param called at -e line 1.

    So yes, there was definitely a problem

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948770]
help
Chatterbox?
[LanX]: On another node, I just saw yesterday that the everything engine supports auto-paragraph whithout the need to type <p>
LanX i.e. the newest everything engine
[holli]: nice. i never thought of hosting a script on the site
[LanX]: It's not a perfect solution, since it means invoking the monastery several times, but IMHO still better than hosting on another server
[holli]: i'm surprised it even executes. the server sends text/plain AND a content-dispositio n header
[holli]: this really really should not be executed as Javascript
erix's head is getting content indisposed

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-11-20 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?