Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing 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).
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic