How to populate <input type=file...> with default value?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default How to populate <input type=file...> with default value?

    Is there some way to populate the "Browse" box for a <input type=file...> with a default value? I
    can do it for <input type=text...>, but can't seem to do it for <input type=file...>.

    Any ideas?

    Thanks,
    Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Don 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. 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...
  3. #2

    Default Re: How to populate <input type=file...> with default value?

    Don wrote:
    > Is there some way to populate the "Browse" box for a <input
    > type=file...> with a default value? I can do it for <input
    > type=text...>, but can't seem to do it for <input type=file...>.
    >
    No you can't, it's a security rule...


    JW



    Janwillem Borleffs Guest

  4. #3

    Default Re: How to populate <input type=file...> with default value?

    Don wrote:
    > Is there some way to populate the "Browse" box for a <input
    > type=file...> with a default value? I can do it for <input
    > type=text...>, but can't seem to do it for <input type=file...>.
    >
    Stop multi-posting! Already answered in alt.php and alt.comp.lang.php


    JW



    Janwillem Borleffs Guest

  5. #4

    Default Re: How to populate <input type=file...> with default value?

    On Sun, 24 Oct 2004 08:59:04 +0200, "Janwillem Borleffs" <jw@jwscripts.com> wrote:
    >Don wrote:
    >> Is there some way to populate the "Browse" box for a <input
    >> type=file...> with a default value? I can do it for <input
    >> type=text...>, but can't seem to do it for <input type=file...>.
    >>
    >
    >Stop multi-posting! Already answered in alt.php and alt.comp.lang.php
    >
    >
    >JW
    >
    >
    Thanks JW. Sorry about the multi-posting. I hadn't thought about the problem it poses. I wasn't
    sure which group would be most appropriate. I'll be more descrete about my posting in the future.

    Regards, Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Don Guest

  6. #5

    Default Re: How to populate <input type=file...> with default value?

    Don wrote:
    > On Sun, 24 Oct 2004 08:59:04 +0200, "Janwillem Borleffs" <jw@jwscripts.com> wrote:
    >
    >
    >>Don wrote:
    >>
    >>>Is there some way to populate the "Browse" box for a <input
    >>>type=file...> with a default value? I can do it for <input
    >>>type=text...>, but can't seem to do it for <input type=file...>.
    >>>
    >>
    >>Stop multi-posting! Already answered in alt.php and alt.comp.lang.php
    >>
    >>
    >>JW
    >>
    >>
    >
    > Thanks JW. Sorry about the multi-posting. I hadn't thought about the problem it poses. I wasn't
    > sure which group would be most appropriate. I'll be more descrete about my posting in the future.
    They are all on the same topic, so they are all appropriate, but I think
    comp.lang.php is the natural successor of them all.

    When you have doubts of which group of several is appropriate, then
    chances are that people in one of the groups also reads the others,
    because it is their field of interest. So there seldom is any need to do
    multipost, unless you want to repost for some reason.

    Another angle is that, if people don't notice it is a multipost, they
    will perhaps answer it, and get annoyed or killfile-pissed when they see
    that it allready was answered in another group. Or they see that it is
    answered elsewhere an leave it unanswered, making it harder for other
    with the same problem to find the answer.

    /Bent
    Bent Stigsen Guest

  7. #6

    Default Re: How to populate <input type=file...> with default value?

    On Sun, 24 Oct 2004 16:25:47 +0200, Bent Stigsen <ngap@thevoid.dk> wrote:
    >Don wrote:
    >> On Sun, 24 Oct 2004 08:59:04 +0200, "Janwillem Borleffs" <jw@jwscripts.com> wrote:
    >>
    >>
    >>>Don wrote:
    >>>
    >>>>Is there some way to populate the "Browse" box for a <input
    >>>>type=file...> with a default value? I can do it for <input
    >>>>type=text...>, but can't seem to do it for <input type=file...>.
    >>>>
    >>>
    >>>Stop multi-posting! Already answered in alt.php and alt.comp.lang.php
    >>>
    >>>
    >>>JW
    >>>
    >>>
    >>
    >> Thanks JW. Sorry about the multi-posting. I hadn't thought about the problem it poses. I wasn't
    >> sure which group would be most appropriate. I'll be more descrete about my posting in the future.
    >
    >They are all on the same topic, so they are all appropriate, but I think
    >comp.lang.php is the natural successor of them all.
    >
    >When you have doubts of which group of several is appropriate, then
    >chances are that people in one of the groups also reads the others,
    >because it is their field of interest. So there seldom is any need to do
    >multipost, unless you want to repost for some reason.
    >
    >Another angle is that, if people don't notice it is a multipost, they
    >will perhaps answer it, and get annoyed or killfile-pissed when they see
    >that it allready was answered in another group. Or they see that it is
    >answered elsewhere an leave it unanswered, making it harder for other
    >with the same problem to find the answer.
    >
    >/Bent
    Good points Bent.

    Thanks,
    Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
    Don 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