<input type="file"> readonly

J

Jarrod

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"
 
D

Don Verhagen

In Jarrod <[email protected]> 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"
 

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
474,266
Messages
2,571,076
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top