• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting upload path

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic