Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open File Dialog For Any OS

Status
Not open for further replies.

sgk17

Technical User
Nov 8, 2002
68
US
I need to create a web page that will allow a user to open an open file dialog to browse to whatever file they may need in their file system. It needs to open up to a "default" directory and it needs to work on Windows, Macs, and Linux. I'm just starting to look at web programming so I don't know much. Can this be done in ASP.NET? What about JSP pages? Can someone point me in the right direction? Thanks in advance for your help.
 
I believe this functionality is handled by the browser. Essentially, the browser needs to interpret the
Code:
<input type=&quot;file&quot;>
tag in a way that makes sense to the current OS. Settings such as the &quot;default directory&quot; are set by the browser/os and, as far as I know, cannot be manipulated by a web page. Maybe you can with javascript, but I doubt it.

HTH
 
So if I have a web page with an open file dialog it will work on any system if I don't worry about the &quot;default&quot; directory? In other words, an open file dialog in an ASP.NET page will work for a user running Linux? As far as the default directory, can I set a cookie to remember the last directory accessed? Thanks again.
 
So if I have a web page with an open file dialog it will work on any system if I don't worry about the &quot;default&quot; directory? In other words, an open file dialog in an ASP.NET page will work for a user running Linux?

Absolutely


As far as the default directory, can I set a cookie to remember the last directory accessed?

Again, since this is controlled by the browser or OS, I'm not sure if even javascript can manipulate this value. (But I could be wrong.)




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top