Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    122
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Input type="File"

    Wow, i just spent the last 15 minutes looking and i can't for the life of me find any information that tells me u can preprogram this form element to begin browsing in a particular folder. Tell me it's possbile to do?

  • #2
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    No, it's not possible. The RFC 1867 specifies exactly how you can use the file type for uploading from html forms and how it works. As far as I know, there is no way to modify the use of this. But hey, I may be wrong. It happens all the time, haha. But sorry, I don't believe you can.

    -Shane

  • #3
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Technically?
    No, you can't, but if this is for an intranet app (MSIE only), you can use vbscript and createobject to invoke the Windows file browser and specify where to look, then write that to the file input element.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    122
    Thanks
    1
    Thanked 0 Times in 0 Posts
    WOW!

    ok, thx for clearing that up folkz!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •