You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Glenn Nielsen <gl...@voyager.apg.more.net> on 2002/02/11 16:22:44 UTC

[PROPOSAL] Decoding multpart mime HTTP POST API

Decoding HTTP POST multipart mime data is a common task needed for
file uploads.  There may already exist within Jakarta code for doing
this.  This seems like a 'common' API which many Jakarta projects could
use.

Thoughts?

Regards,

Glenn

----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PROPOSAL] Decoding multpart mime HTTP POST API

Posted by Serge Knystautas <se...@lokitech.com>.
+1.

I wrote a simple one that's in the Town project library.  Town was on
working-dogs.com, where ECS and other apache projects were and it has an
Apache license.  The code is now at
http://share.whichever.com/index.php?SCREEN=town.  The class is
com.workingdogs.town.tagext.MultipartRequest and MimePart.  Please feel free
to do whatever with it.

Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
----- Original Message -----
From: "Glenn Nielsen" <gl...@voyager.apg.more.net>
To: <co...@jakarta.apache.org>
Sent: Monday, February 11, 2002 10:22 AM
Subject: [PROPOSAL] Decoding multpart mime HTTP POST API


> Decoding HTTP POST multipart mime data is a common task needed for
> file uploads.  There may already exist within Jakarta code for doing
> this.  This seems like a 'common' API which many Jakarta projects could
> use.
>
> Thoughts?
>
> Regards,
>
> Glenn
>
> ----------------------------------------------------------------------
> Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
> MOREnet System Programming               |  * if iz ina coment.      |
> Missouri Research and Education Network  |  */                       |
> ----------------------------------------------------------------------
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PROPOSAL] Decoding multpart mime HTTP POST API

Posted by Berin Loritsch <bl...@apache.org>.
Jon Scott Stevens wrote:
> on 2/11/02 7:22 AM, "Glenn Nielsen" <gl...@voyager.apg.more.net> wrote:
> 
> 
>>Decoding HTTP POST multipart mime data is a common task needed for
>>file uploads.  There may already exist within Jakarta code for doing
>>this.  This seems like a 'common' API which many Jakarta projects could
>>use.
>>
> 
> Turbine has this code in it...
> 
> jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/upload
> 
> You want the MultipartStream.java class and there are other files in there
> that help out with file upload as well.
> 
> I would be +1 to factoring that out into Commons and then having Turbine
> depend on that commons code.


+1

A nice API agnostic way to parse MultipartStream would be great!



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PROPOSAL] Decoding multpart mime HTTP POST API

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 2/11/02 7:22 AM, "Glenn Nielsen" <gl...@voyager.apg.more.net> wrote:

> Decoding HTTP POST multipart mime data is a common task needed for
> file uploads.  There may already exist within Jakarta code for doing
> this.  This seems like a 'common' API which many Jakarta projects could
> use.

Turbine has this code in it...

jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/upload

You want the MultipartStream.java class and there are other files in there
that help out with file upload as well.

I would be +1 to factoring that out into Commons and then having Turbine
depend on that commons code.

-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PROPOSAL] Decoding multpart mime HTTP POST API

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 11 Feb 2002, Glenn Nielsen wrote:

> Date: Mon, 11 Feb 2002 09:22:44 -0600
> From: Glenn Nielsen <gl...@voyager.apg.more.net>
> Reply-To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> To: commons-dev@jakarta.apache.org
> Subject: [PROPOSAL] Decoding multpart mime HTTP POST API
>
> Decoding HTTP POST multipart mime data is a common task needed for
> file uploads.  There may already exist within Jakarta code for doing
> this.  This seems like a 'common' API which many Jakarta projects could
> use.
>

+1

> Thoughts?
>

There's some code for this in Struts, but it is somewhat Struts-specific.
However, I face myself needing exactly the same thing (upload decoding) in
implementing Tomcat's support for remote deployment of webapps, so I'd be
willing to help on this.

If we're willing to be specific to Servlet 2.3, this would be a pretty
nice application of a filter (your next message :-).

> Regards,
>
> Glenn

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>