You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arion Yu <ar...@stt.com.hk> on 2000/07/12 03:50:20 UTC

Some suggestion on multipart support

Hi!

I think the support for multipart is necessary for those who want to
build a simple application with Tomcat (but no others). This one should
be a standard, although you can use what you have existing (like using
JavaMail or Jason's code). My propose is:

For file in the multipart, create a temporary file for the content, and
store the file name, type in an object (maybe a class called
UploadedFile), the user may get the inputstream of the file and store it
somewhere (in DB or other permanent file)

I already have some experience in parsing Multipart post data like this:

files are named 1, 2, 3 and so on
file names, file types and sizes are stored in the database.

Any suggestion?

Arion

--
[This email and any files transmitted with it are confidential and may
contain information that is legally privileged. They are intended solely
for the addressee(s). Access to this email by anyone else is
unauthorized. If you are not the intended recipient, please delete it
and notify the sender by email immediately; you should not copy or use
it for any purpose, nor disclose its contents to any other person. Thank
you.]