Welcome to WebmasterWorld Guest from 54.163.94.5

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)

New User

5+ Year Member

joined:Feb 28, 2009
posts: 24
votes: 0


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)

Senior Member

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

joined:Nov 28, 2004
posts:7999
votes: 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.

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

New User

5+ Year Member

joined:Feb 28, 2009
posts: 24
votes: 0


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