0

Browse button functionality

asked 2013-01-17 08:36:41 +0800

romi gravatar image romi
20 2

Hi,
I used following code for browsing a document
UploadEvent upEvent = null;
Object objUploadEvent = ctx.getTriggerEvent();
if (objUploadEvent != null && (objUploadEvent instanceof UploadEvent)) {
upEvent = (UploadEvent) objUploadEvent;
}
if (upEvent != null) {
Media media = upEvent.getMedia();
File file = new File(media.getName());
this.dosPath = file.getCanonicalPath();
}

But as dosPath am getting path from eclipse whereas i want it to be the selected directory as for eg d:/test/test2/myfile.text
Is this possible.

Thanks,

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2013-01-17 08:36:41 +0800

Seen: 16 times

Last updated: Jan 17 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More