-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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,
Asked: 2013-01-17 08:36:41 +0800
Seen: 16 times
Last updated: Jan 17 '13