I don't think that's possible, not if everything is "built" to do the right
thing.

If I understand correctly, you want to tell they people that they have
uploaded 
C:\mydocs\doc1.txt (client's path to the file) on their computer (client's).
Well, browsers are not "supposed" to send the whole path to the server. Even
though I think the latest IE is doing that, which is illegal I believe. So
all you do get is just the filename.

If you trying to find out the path that the uploaded file got on your
server, then think you can use getFilePath() function if you are using
DiskFile class. If have not used this functionality in struts, So I don't
know how to do it exactly.

HTH,
Pritpal Dhaliwal


-----Original Message-----
From: Kumar M [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 8:20 AM
To: Struts Users Mailing List
Subject: FileUpload and filePath


Hi all,

I am uploading files using FormFile in my ActionForm. When the uploaded 
is completed I would like to show them the complete path of the files 
that they have uploaded. For example, "C:\mydocs\doc1.txt" instead of 
just "doc1.txt". The FormFile.getFileName() retrieves the file name but 
I couldn't find anything that retrieves the file path.

Any ideas/suggestions?

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to