value attribute in element <input type="file">

M

Matt

If I do the following, the browse text box still cannot see
C:/hello world/test.txt.

<input type="file" name="fileName" value="C:/hello world/test.txt" size=80>

I realize we couldn't set the default filename for security reasons, and browsers
don't support that. (http://www.cs.tut.fi/~jkorpela/forms/file.html#value).

I really need to implement this feature, any workarounds to the problem?

Please advise. thanks!!
 
K

Karl Core

Matt said:
If I do the following, the browse text box still cannot see
C:/hello world/test.txt.

<input type="file" name="fileName" value="C:/hello world/test.txt"
size=80>

I realize we couldn't set the default filename for security reasons, and
browsers
don't support that.
(http://www.cs.tut.fi/~jkorpela/forms/file.html#value).

I really need to implement this feature, any workarounds to the problem?

Yeah, here's a great workaround: acceptance. Can't be done, so move on.

-Karl
 
M

Mitja

I realize we couldn't set the default filename for security reasons, and
browsers
don't support that.
(http://www.cs.tut.fi/~jkorpela/forms/file.html#value).

I really need to implement this feature, any workarounds to the problem?

You'll still have to work on that realizing part :)
If there were workarounds, Jukka would've mentioned them. It can't be
done. Maybe we can help if you tell us about the background of your
problem.
 
B

brucie

In alt.html Matt said:
<input type="file" name="fileName" value="C:/hello world/test.txt" size=80>
I really need to implement this feature, any workarounds to the problem?

use a browser that supports it such as opera3-6
 
J

Jukka K. Korpela

brucie said:
use a browser that supports it such as opera3-6

Do you mean that something changed in a later version of Opera? My Opera
7.23 seems to support the value attribute as before (with the security
alert).
 
T

Toby Inkster

Matt said:
I realize we couldn't set the default filename for security reasons, and browsers
don't support that. (http://www.cs.tut.fi/~jkorpela/forms/file.html#value).

I really need to implement this feature, any workarounds to the problem?

Of course there aren't any workarounds. If there were, they'd be security
problems and would be fixed in the next release of the browser. (e.g.
there was such a bug in Opera 6.01 and 6.02 for Windows, but it was fixed
in 6.03.)
 
B

brucie

In alt.html Jukka K. Korpela said:
Do you mean that something changed in a later version of Opera?

i only looked in 3 and 6.
My Opera 7.23 seems to support the value attribute as before (with the
security alert).

yep but i didn't get a security alert. its not supported by 7.54 or
7.6p2.
 

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,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top