Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Path of a JavaMail attachment  RSS feed

 
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.e.,
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!