Hi David,

David Haynes wrote:
> How are people doing file uploads with Apache2 and Windows?
> I have tried the method in the FAQ but cannot find 'libapreq' in CPAN 
> or two other Perl repositories.
> (and for the record, the FAQ for the mod_perl side should read 
> 'Apache2::Upload' not 'Apache::Upload'.
> It there some other module-based way of doing this now?


I believe the documents haven't been updated for Apache2 yet.  So, it 
should now be libapreq2 and Apache2::Upload.

Assuming you have everything set up (i.e., loaded Apache2::Upload), what 
I have under Mason/mod_perl as the source is:

<%args>
$uploaddata => ""
</%args>

my $req = Apache2::Request -> new ($r);
my $upload = $req -> upload ('uploaddata');
$size = $upload -> slurp ($contents);

Hopefully you can build on this yourself; good luck!

Ray




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to