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 image uploaded through
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:
- it saves me about five hours per week
subject: Need fetch fullpath of a file uploaded
How to get the path of an Uploaded file?
how to handle file uploads in spring
how to set the file path in struts for file upload
get full path
Download pdf file in struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013