The FormFile interface doesn't give you that possebility.
You can only get the InputStream to that "file".
If you need an access path to a file, you have to
copy the stream to another tmp file, delete (destroy)
the FormFile, and pass the new created tmp file 
to your business object. It's a matter of the interface
(the actual implementation is a DiskFile, which has a path
to the server side created file. If you try to use this one,
you can create code that is not compatible with future 
implementations of strut's upload feature).

Regards, Holger



-----Urspr�ngliche Nachricht-----
Von: dd ss [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 19. September 2001 11:03
An: [EMAIL PROTECTED]
Betreff: File upload : How do I access the uploaded file


Hi,

I want to have access to the actual file that gets
uploaded and is saved on the server. i.e if a user
uploads a file called test.txt and the server store
this file as str345.tmp somewhere on server, how do I
get access to the file str345.tmp with fully qualified
path. Once I get this, I need to pass this info to
another method which will extract the contents of this
file and insert them in database. Because of the
already existing method signature I can pass only the
fully qulified file name only to the method.

Thanks

Vimal

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/  






Reply via email to