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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Need fetch fullpath of a file uploaded
Jiya Khan
Greenhorn
Posts: 3
posted 14 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 14 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());
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
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...