Input type="file"

They have: 89 posts

Joined: Sep 1999

Hello jack

I don't know if this possible. However, there may be some things you can try, though I doubt they will work. If it opens at the last visited folder, you could try and force the user to "visit" a folder before the form is submitted. Again, I don't think this in particular will work, but it will give you some ideas to play with

See if this works:

When the page loads force a "hidden" window to load another page like so

<SCRIPT LANGUAGE="JavaScript"><!--
myWindow = window.open('hidden.html','Hidden','scrollbars=no,width=1,height=1');
myWindow.blur()
myWindow.close()
//--></SCRIPT>

then have this hidden.html file in the short time that is open access a local directory and file using <iframe> or some other way.

<iframe src="c:\autoexec.bat"></iframe>

then maybe the last directory would be changed for you...but probably not

there is parameter of input file called value, but I can't seem to figure out what that is for..

They have: 89 posts

Joined: Sep 1999

ahh just found this information

The VALUE attribute specifies the name of the initial file, but it is typically ignored by browsers as a security precaution. The ACCEPT attribute gives a comma-separated list of media types accepted, allowing the browser to filter out inappropriate files. Current browsers generally ignore the ACCEPT attribute.

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Hi everyone,

When clicking an <input type="file"> a popup pops up . In that popup you select a file and when clicking the "open"-button the selected file is opened in your browser, if you have the right plugin(s).
(For the people who don't know the <input type="file"> )

The popup starts at Desktop or the last visited folder. I want the popup to start in a specified folder.
Does anyone know how to realize that?

Jack.

Shakespeare: onclick || !(onclick)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.