commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul DeCoursey" <p...@decoursey.net>
Subject Re: FileUpload Parameter Handling
Date Thu, 07 Oct 2004 21:55:26 GMT
I know what you are saying about it breaking your architecture... i use a
servlet that calls scripts based on a parameter, I found that using the
multipart-encoding broke that.  I later discovered that if I post the
multipart but have my parameter on the querystring it works fine.

Paul


> No, this is just a plain servlet.  Another guy wrote that regular form
> params show up in in the DiskFileUpload.
>
> When you iterate through the values, you can test to see
> if they are form fields with "isFormField"
>
>
> Example:......................................
> DiskFileUpload upload = new DiskFileUpload();
> List           files  = upload.parseRequest(request);
> Iterator       it             = files.iterator();
>
> while(it.hasNext()){
>    FileItem item = (FileItem)it.next();
>    if(item.isFormField()){....
>
>
> But that still breaks my architecture - although I can get to that
> architecture if I have to.
>
> Adam
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message