default folder for file select form input

D

DavidC

is it possible to specify a start folder on the file select??
I have tried specifying value="c:\" but it just defaults to the last
directory looked at not c

thanks
david
 
J

Jukka K. Korpela

DavidC said:
is it possible to specify a start folder on the file select??

The "folder" concept does not exist in HTML. But by the specifications,
you can specify the initial (default) value for the file name, which is
normally interpreted as a path name, in a system-dependent manner.
The value="..." attribute in <input type="file" ...> is to be used for
that.

But few browsers (as far as I know, no browsers except Opera) have
bothered trying to implement the value="..." attribute. And even when
supported, it's seldom useful, since how could you know the file names
available on the user's system, even the syntax of file names, not to
mention what folders and files exist?
I have tried specifying value="c:\" but it just defaults to the last
directory looked at not c

Well, what would you expect "c:\" to mean in an average MVS system, or
Linux system, for example?

More info: http://www.cs.tut.fi/~jkorpela/forms/file.html#value
 
L

Louis Somers

is it possible to specify a start folder on the file select??
I have tried specifying value="c:\" but it just defaults to the last
directory looked at not c

thanks
david

You are in the wrong newsgroup.

Yes it is frustrating that XP defaults to the last used folder, ask how to
change it in one of those microsoft.public.(yourOS) groups.
 

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,102
Messages
2,570,646
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top