commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric H. Jung" <ej...@russellmellon.com>
Subject [Fileupload] Progress bar
Date Tue, 23 Dec 2003 20:29:45 GMT
Sorry for not replying to the thread started by Eric Pugh at
http://www.mail-archive.com/commons-dev%40jakarta.apache.org/msg32368.html,
but I've only just joined commons-dev as suggested to me by Yoav on
tomcat-dev.
We were discussing a related topic there.

I've gone through signifcant efforts to extend commons-fileupload using
Listener interfaces
in order to support a progress bar to no avail. I researched what others
have done,
including but not limited to
http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html
(which, by the way, seems to redistribute commons-fileupload without any
mention of Apache).

I do not see how this problem can be tackled without writing one's own (or
extending another)
servlet container. There is currently no way in the servlet spec to know the
number of bytes
that have been read as a ServletRequest is being processed. By the time
Servlet.service() or
Filter.doFilter() are called, the *entire* InputStream has been read from
the socket, leaving no
way to provide user feedback during the upload.

I could be totally off base here, and if I am, I'd appreciate it if someone
would show me the light.

Thank you,
Eric H. Jung
ejung@russellmellon.com





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


Mime
View raw message