Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Struts
Need fetch fullpath of a file uploaded
Jiya Khan
Greenhorn
Posts: 3
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I want full path of the image uploaded through
struts
file upload.
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..
Regards,
jiya
shirish katti
Ranch Hand
Posts: 34
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Using
java
it is very easy..
You can get the path of a file as below
File f=new File("fileName");
system.out.println(f.getAbsolutePath());
A tiny monkey bit me and I got tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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
More...