This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting upload path

 
sujendra sugur
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi everybody,


I have a problem in uploading images. the problem is , in form i want to set paths as defaultly selected with out browse button and when
i hit submit those file to be upload into server.

Please tell me how to set path default

thank you
sujendra
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're trying to do what I think you are, you can't.

Browsers are intentionally designed not to allow a web app to fetch files from the file system.
The <input type="file" ...> tag was specifically stripped of the capability to modify it's value attribute via Javascript to insure that web developers don't try to find loopholes around this.

This is a good thing.
Imagine if any site you went to had the capability to grab files (like you're windows registry) from a hidden iframe without your knowledge.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!