Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INPUT TYPE=FILE... Database retrieval 1

Status
Not open for further replies.

nphani

Technical User
Feb 10, 2002
104
US
Hi Friends,
I have a <INPUT TYPE=FILE...> which should show database value of the previously stored file path. I give it as:

<input class=&quot;regtext&quot; type=&quot;file&quot; name=&quot;smallimage&quot; value=&quot;<%=CStr(Replace(rsProduct.Fields(&quot;SmallImage&quot;), &quot;~&quot;, &quot;'&quot;))%>&quot;>

But the value doesnot show up in the file element. I do get the value from the database, but is not being shown. What is the attribute to use to show the file?

Phani
 
The probem is that there is no &quot;value&quot; attribute for input type=file, as that would be a security concern. The issue is that you could easily force upload on documents that the user doesn't want you to upload, thus the user is the only one that can select the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top