[opencms-dev] multipart/form-data with other parameters

Marcus Redeker mredeker at web.de
Fri May 16 21:21:01 CEST 2003


Chase,

I assume this is a normal behavior for file uploads using multipart and
not OpenCMS specific.
There are a lot of servlet/jsp libraries available which provide a
wrapper to access the binary data
and the regular parameter. We always use the one from O'reilly:
http://www.servlets.com/cos/index.html

--Marcus


> -----Original Message-----
> From: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Urich, Chase
> Sent: Friday, May 16, 2003 6:51 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] multipart/form-data with other parameters
> 
> 
> I am attempting to upload a file using 
> enctype="multipart/form-data". However, when that enctype is 
> specified, I cannot access any of the other parameters like 
> normal using the request.getParameterValues() method. Is 
> there another way I should be accessing those parameters from 
> OpenCMS when combined with file uploads?
> 
> Sample Code:
> 
> Form :
> ------------
> 
> <form name="" method="POST" action="" 
> enctype="multipart/form-data"> <input type="text" 
> name="text_1"> <input type="file" name="file1"> </form>
> 
> Parameter Code:
> ---------------
> public String[] getCleanParameter(HttpServletRequest request, String
> parameter) {
> 	return = request.getParameterValues(parameter);
> }
> 
> Chase Urich
> Web Programmer
> LeTourneau University _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> 




More information about the opencms-dev mailing list