I used the following example found here: http://www.perl.com/pub/a/2005/05/05/aggregation.html
It is pure mod_perl2 and I set up its own location/handler in the apache2 conf file. Once it is done it redirects to Mason enabled pages. The example has a lot of extra processing, etc. that can be stripped out. I do processing before and after the upload. -Bill On Tue, 2007-02-06 at 15:41 +0100, Stephan Jennewein wrote: > Hi, > > I want to implement a file upload but the spool file of mod_perl should > be created in extra temp directories. > > use Apache2::Upload; > my $req = Apache2::Request->new($r, TEMP_DIR => "/home/httpd/tmp"); > my $upload = $req->upload('file'); > > This is the snippet of the code I use to change the directory. My > problem is now that I can't create a directory for the tempfile, because > mod_perl is halting the whole script until the upload finished and I > want to store the total upload sum in a extra file in the same directory > before the upload starts. > > I also tried the upload hook but it doesn't work, too. > > Stephan > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users