input type=file question

M

Mel

i have:

<input type=file name="file" value="c:/tmp/junk.txt">

why does value NOT WORK ? it does not place the file in the input field !!!

please help
 
N

nice.guy.nige

While the city slept, Mel ([email protected]) feverishly typed...
i have:

<input type=file name="file" value="c:/tmp/junk.txt">

why does value NOT WORK ? it does not place the file in the input
field !!!

And you can be sure that your visitors will have that file on their system
in that directory? Or that they even have a C: drive? And that even if they
*do* have it, they want to upload it to your server?

Cheers,
Nige
 
B

brucie

In alt.html Mel said:
<input type=file name="file" value="c:/tmp/junk.txt">
why does value NOT WORK ?

you're using the wrong value:

value="c:\passwords\my-passwords.ext"
 
S

Sam Hughes

i have:

<input type=file name="file" value="c:/tmp/junk.txt">

why does value NOT WORK ? it does not place the file in the input
field !!!

If it did work, the browser would have a security risk.
 

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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top