I have a form I want to do an ajax-style upload with.  It seems to work with
a manual form, but no through the ajax.  The AJAX does work with the
supplied script, but it's CGI, which I want to avoid.

Could someone tell me what I might be missing on the mod_perl2 side?

#################
My code:

use Apache2::Upload;
my $req = Apache2::Request->new($r);
my $upload = $req->upload('uploadFile');
if    ( $upload ) { ........



###############################
CGI code that works:

    use strict;
    use CGI::Carp qw(fatalsToBrowser);

    use Digest::MD5;

    my $uploaddir = '/tmp/';

    my $maxFileSize = 0.5 * 1024 * 1024; # 1/2mb max file size...

    use CGI;
    my $IN = new CGI;

    my $file = $IN->param('POSTDATA');
    my $temp_id = $IN->param('temp_id');
    ............
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to