Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

CGI Upload module recommendations

by mikeraz (Friar)
on Mar 11, 2012 at 12:54 UTC ( [id://958938]=perlquestion: print w/replies, xml ) Need Help??

mikeraz has asked for the wisdom of the Perl Monks concerning the following question:

I'm needing to enable file uploads through a web thingy. Visiting Perlmonks a search for "cgi upload" returns a single entry from 2001. Visiting CPAN shows:

 CGI::UploadEngine - Roger Hall & Others
 CGI::Untaint::upload - Simon Cozens
 CGI::FileUpload - Alexandre Masselot
 CGI::Upload -  גאבור סבו - Gábor Szabó
 and many more ...
Checking the dependency trees for Catalyst::Request::Upload and Dancer::Request::Upload shows they don't use any of these.

My webapp will have file uploading as part of a larger multipart form. The intent is to not process other form elements on the page when the upload button is selected from the page, just accept the file and store it for later use.

Which modules(s) would you encourage or discourage using?
Update: the fine folks on IRC made a strong case for are you crazy/a masochist? Get a framework. Dancer, Catalyst, Mojolicious, Web::Simple ...


Be Appropriate && Follow Your Curiosity

Replies are listed 'Best First'.
Re: CGI Upload module recommendations
by kcott (Archbishop) on Mar 11, 2012 at 13:46 UTC

    The CGI module provides the file upload functionality you've described. The CREATING FILL-OUT FORMS section has details on creating and processing file upload fields. It is part of the standard Perl distribution.

    Whether I'd encourage or discourage using it rather depends on what web thingy is.

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://958938]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found