Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Upload file- Ajax+Perl

by Anonymous Monk
on Jul 10, 2016 at 15:14 UTC ( [id://1167528]=note: print w/replies, xml ) Need Help??


in reply to Re: Upload file- Ajax+Perl
in thread Upload file- Ajax+Perl

Finally, this worked for me. But why CGI is not used here? Does that mean I need to send all the other data via http headers, for example if I send a form with multiple fields and files?

Replies are listed 'Best First'.
Re^3: Upload file- Ajax+Perl
by Anonymous Monk on Jul 10, 2016 at 20:19 UTC

    Finally, this worked for me. But why CGI is not used here?

    Because the guy who wrote it is naive/ignorant.

    Does that mean I need to send all the other data via http headers, for example if I send a form with multiple fields and files?

    No. If your server program is running under CGI use CGI module for getting at the data.

      Right, the body of the request can be accessed via CGI. I used $cgi->param('POSTDATA') to save the uploaded file.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found