homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

5+ Year Member



 
Msg#: 3890369 posted 5:05 am on Apr 11, 2009 (gmt 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.

 

rocknbil

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



 
Msg#: 3890369 posted 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.

saideep2007

5+ Year Member



 
Msg#: 3890369 posted 4:42 am on Apr 13, 2009 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved