Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

possible?? input type=file name=img_file  RSS feed

 
Sunil K Bansal
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
is it possible to show file name alrady stored in database into <input type=file .... >
it has value attribute, but it do not allow to set the value, or u can say it do not show the value
as I m writing this in my JSP
<input type="file" name="img_file" size="30" accept="image/gif,image/jpeg" value="<%=file_name%>">
i want to show value in file_name variable, which got its value from database, into input type file..
but I m not able to...
i think value attribute in <input type=file is read only.. is it??
Is there anyway to set the value ...
I hope u understand, what I want??
kindly reply me ASAP.
Actually I just want to save this file name in database column. and I also want to upload this file in a particular folder on the Server.
Kindly help me on this also how to upload a file to a folder on a server thru JSP/Java..
thanks in anticipation...
Sunil Bansal
 
Eric Pu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's the problem of the browser. (The browser do not let the value available.)And it's hard to solve it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!