Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Default path for <input type=file. > as a Webdirectory


rocknbil - 3:50 pm on Apr 11, 2009 (gmt 0)


You can't get or set the value of the file input as a security restriction. If you could, it could lead to abuse of Javascript to read local file systems.

The file input type only works for browsing the local computer of the client. Since the browser is on the client computer, it is "unaware" of the remote file system so it's impossible to browse the server.

You would probably have to assemble some forms-based system that reads and outputs the remote file system and approach this through a variety of selection methods - a select list or checkboxes, for example.


Thread source:: http://www.webmasterworld.com/php/3890369.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com