Take a look at the upload process in the Punk Image Gallery sample app.  It 
uses a modified version of Jason Hunter's (O'Reilly ) multipart-mime 
handling code.

Note that PIG is a little dated both architecturally (it uses entity EJBs, 
yeeech) and versionwise - the Maverick config file format has changed a bit 
since then.

Also, more recent versions of the O'Reilly code probably address the problem 
that required the modification.  I exchanged a few messages with Jason 
Hunter about filename collision problems on servlet-interest and he said he 
would fix it.  I haven't checked the code since then.

Basically, handling file uploads with Maverick is no different than handling 
file uploads with servlets.

Here's a link to the upload controller:

http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/mav/pig/src/java/org/infohazard/pig/web/controller/UploadSubm
it.java?rev=1.21&content-type=text/vnd.viewcvs-markup

A full rewrite of PIG is in the works, but not likely to be done anytime 
soon.

Jeff Schnitzer
[EMAIL PROTECTED]


> Can anyone point me to an example of uploading files using maverick
> 
> cheers pb..
> -- 
> ---------------------------------------------------------------------------
-----------
> Peter Blakeley - Attain Consultants - mobile: 0427-723-814
> 
> SECURITY
> Virus-Protection, Firewalls, Auditing, Upgrades, Repairs, Troubleshooting
> 
> NETWORK
> Windows 2000, XP, Design, Setup, Management, Troubleshooting  
> 
> INTERNET
> Web site design, Java programming, JEE2, JSP, Servlets, RMI, EJB, XML, 
> Workflow, Accounting, Web Services
> 
> [ attainconsult.com ]
> [ coolcat.com.au ]
> 
> "Why open source? because I prefer to surf the wave to the beach rather 
> than swim all the way in."






-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
[INVALID FOOTER]

Reply via email to