You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by St...@bahn.de on 2003/11/12 12:26:45 UTC

FileUpload: Bug in FileUploadBase::parseRequest?

Hi all,

I'm still working on getting FileUpload write the uploaded files directly
to database. I will give some hints on how to do it when I'm done. However,
it is not clear yet if I will be allowed give away code.

While testing I found out that when a file field in the HTML upload form is
empty, i.e. this field is not used to upload a file, FileUploadBase still
creates an FileItem for it. Is this on purpose? In the code of
FileUploadBase::parseRequest it is checked if the file fileName is null,
and if so, no FileiItem is created and the body data is discarded. However,
if the file field in the HTML form is empty then the filename is not null
but "", an empty string! So this looks like a bug.

FileUploadBase developers, am I right?

Steffi
____________________________________________________
Internetauftritt der Deutschen Bahn AG >> http://www.bahn.de

---------

Diese E-Mail könnte  vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail sind nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

----------



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