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