Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Upload file- Ajax+Perl

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


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

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.

Replies are listed 'Best First'.
Re^4: Upload file- Ajax+Perl
by romanegloo (Initiate) on Jul 12, 2016 at 18:03 UTC
    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://1167533]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found