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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a clever way to populate type=file

Status
Not open for further replies.

LEICJDN1

Technical User
Nov 27, 2002
201
GB
Hi,

(perhaps a JS/VB issue??)

I have a form which, via ASO, checks for duplicates before allowing completion of code. If the value passed by the 'title' field already exists, it bounces back to the form.

Now, by passing variables back and using ASP to set the value=" " section for the standard input areas I can repopulate the form to before the data was sent.

However, 'value' is not a valid tag for the type=file input, but it would be nice to repopulate this input box as well or it becomes a little clumsy.

Anyone know a workaround to this problem?

Cheers.
 
You cannot set this value.

Here is a good article that addresses this issue for older browsers:


Whilst I have heard that some versions of Opera will let you set this value, no other browser will (since it could cause a security violation that might lead to a file being uploaded without your knowledge).

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top