Pre defined value for <input type="file">

  • Thread starter =?iso-8859-15?Q?Jens_M=FCller?=
  • Start date
?

=?iso-8859-15?Q?Jens_M=FCller?=

Hello,

I would like to have a predifined value for the selection field of file
upload, as 90% of the Uploads are the same file.

This does not work:
<input type="file" name="upfile" value="c:\up.txt">

Thanks,
Jens
 
D

David Dorward

Jens said:
I would like to have a predifined value for the selection field of file
upload, as 90% of the Uploads are the same file.

This does not work:
<input type="file" name="upfile" value="c:\up.txt">

Imagine:

<input type="file" name="stolen"
value="C:\myAccoutingSoftware\MyCreditCardDetails.dat" style="display:
none">

Browsers don't let authors specify values for file inputs.
 
?

=?iso-8859-1?Q?Jens_M=FCller?=

Imagine:
<input type="file" name="stolen"
value="C:\myAccoutingSoftware\MyCreditCardDetails.dat"
style="display:
none">

Browsers don't let authors specify values for file inputs.

Hmm, makes sence.

Is it possible via JavaScript?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top