Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Default path for <input type=file. > as a Webdirectory



5:05 am on Apr 11, 2009 (gmt 0)

5+ Year Member

How to set the default path for <input type=file... > as a Webdirectory (e.g./public_html/images/) Any Solutions to this Task is Gr8.


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

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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.


4:42 am on Apr 13, 2009 (gmt 0)

5+ Year Member

Thanks for Reply,rocknbil.But editors like FCk provides to browse the server too.How that happens?

Featured Threads

Hot Threads This Week

Hot Threads This Month