Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Path of a JavaMail attachment

Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a MimeMessage with attachments and although i can get the
filename of the attached files, when I show the filenames on the
web app I want to be able to download these files. There is no
way I can download something from the webapp if I don't have
the appropriate path of the attached file.
I could have an attachment with name 'me.doc' uploaded from c:\temp as well as from d:\doc\temp
I should be able to differentiate between the two attachments
The filename returns only 'me.doc' and does not tell me anything about the filePath (which I need for downloading).
A day job? In an office? My worst nightmare! Comfort me tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!