You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mindaugas Idzelis <ma...@ritvax.isc.rit.edu> on 2001/09/06 16:39:23 UTC

FormFile.destroy() vs DiskFile.destroy() -- bug?

Struts,

	It seems to me that there is a problem in either FormFile or DiskFile. In
order for me to get the path information about the file stored on disk, I
have to cast FormFile to DiskFile and call getFilePath(). It would be
convenient if DiskFile.destroy() would actually get rid of the temporary
files. In order for me to get rid of them I have to up-cast DiskFile to
FormFile and then call destroy() on the interface. As far as I can tell,
calling destroy() on DiskFile does nothing. Is this a bug or a feature?

--Min Idzelis