File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Need fetch fullpath of a file uploaded
Joined: Jul 07, 2009
Nov 25, 2009 00:59:42
I want full path of the
AbcForm frm= (AbcForm)form;
FormFile image1 = galform.getTheFile1();
image1 is giving only filename. but i want full path of that file like "C:\temp\DSC00263.JPG";
could anybody please tel how can i do it..
Joined: Nov 09, 2009
Nov 25, 2009 01:50:00
it is very easy..
You can get the path of a file as below
File f=new File("fileName");
I agree. Here's the link:
subject: Need fetch fullpath of a file uploaded
how to set the file path in struts for file upload
How to get the path of an Uploaded file?
Download pdf file in struts2
how to handle file uploads in spring
get full path
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015