On 04.07.2004 12:58, Bruno Dumon wrote:
> Something that doesn't sit entirely right for me is that one would
> 'artificially' create a Part. While technically possible, the definition
> of a Part is that it is a file parsed from a http post.
Yes, that's a bit strange, but for the moment it works. I have committed
it that way.
> How about introducing a new interface for the value of an upload widget,
> lets say UploadData:
>
> UploadData {
> /** Return true if it is newly uploaded data */
> boolean isNew();
> /** Returns the part if isNew returns true, otherwise null. */
> Part getPart();
> InputStream getInputStream();
> String getMimeType();
> }
>
> This would also allow to distinguish between new and unmodified uploads.
Good idea.
Joerg
|