469,922 Members | 1,894 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 developers. It's quick & easy.

<input type="file"> readonly

Just reading from a previous thread about multiple uploads.

I wanted to use script to create multiple input file elements that put the
path in as a default (or something like that) based on ASP code. My problem
was that the input file value property is readonly and there is no default
value.

The thing is you can cut and paste a path manually (ctrl-c,v) but I couldn't
work out how to do it from code. I thought that anything that you could do
manually you could pretty much do with code.

Any help or suggestions?

Thanks,

Jarrod

"The sun always shines on TV"

Jul 19 '05 #1
1 7317
In news:o9******************@newsfep1-win.server.ntli.net,
Jarrod <ja****@bikepics.com> typed:
: Just reading from a previous thread about multiple uploads.
:
: I wanted to use script to create multiple input file elements that
: put the path in as a default (or something like that) based on ASP
: code. My problem was that the input file value property is readonly
: and there is no default value.
:
: The thing is you can cut and paste a path manually (ctrl-c,v) but I
: couldn't work out how to do it from code. I thought that anything
: that you could do manually you could pretty much do with code.
:
: Any help or suggestions?
:

You (as a developer) cannot specify the value for an 'input type="file"'.
It's would be a huge security hole if you could.

Thanks,
Don


: Thanks,
:
: Jarrod
:
: "The sun always shines on TV"
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jesper Hermansen | last post: by
7 posts views Thread by Tim Slattery | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.