html <input type="file"> can you set a value first ?

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Re: html <input type="file"> can you set a value first ?

    There has GOT to be a way. I'm not gonna give up.
    J?J Guest

  2. Similar Questions and Discussions

    1. Help please: Exception when with <input type="file"> but not with Textbox
      I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a...
    2. <input type="image"... based custom control
      I have created one of these controls but arent getting any call backs. I've got the source from the MSPress book "Developing Microsoft ASP.NET...
    3. problem with reset/clear in <input type="file" >
      how to clear values in input file object. In My Form i need to upload a file and enter some values in other text fields. i have "Submit" and...
    4. HTML + <input type="File">
      Hi I'm trying to set default value for input type file. <input type="File" name="tx_pdffile" accept="*.pdf" class="boxText" value="abc.pdf"> ...
    5. <input type="file"> readonly
      Just reading from a previous thread about multiple uploads. I wanted to use script to create multiple input file elements that put the path in as...
  3. #2

    Default Re: html <input type="file"> can you set a value first ?

    Not using standard HTML form inputs. No way. This is for obvious security
    reasons. You could then preset the form to upload sensitive files (such as a
    passwords file) without the user actually doing it knowingly. I am unaware of
    any major browser that allows you to do this. There may be exceptions using
    non-HTML solutions (activeX, flash, other plug-ins etc.)



    blewis Guest

  4. #3

    Default Re: html <input type="file"> can you set a value first ?

    blewis wrote:
    > Not using standard HTML form inputs. No way. This is for obvious security
    > reasons. You could then preset the form to upload sensitive files (such as a
    > passwords file) without the user actually doing it knowingly. I am unaware of
    > any major browser that allows you to do this. There may be exceptions using
    > non-HTML solutions (activeX, flash, other plug-ins etc.)
    >
    >
    >
    The Flash player doesn't allow file uploads at all, so unless Active-X
    can do it (and this would be windows/IE specific) you're out of luck.
    I'd also point out that even if you do find a way to do this it's "bad
    manners" at the very least. The user should choose the file they're
    uploading, not you, and if they're aware of a file upload occurring then
    I can't imagine why you would need to set this value for the user.

    Matt
    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* 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