Pre defined value for <input type="file">

Discussion in 'HTML' started by =?iso-8859-15?Q?Jens_M=FCller?=, Sep 7, 2006.

  1. Hello,

    I would like to have a predifined value for the selection field of file
    upload, as 90% of the Uploads are the same file.

    This does not work:
    <input type="file" name="upfile" value="c:\up.txt">

    Thanks,
    Jens
     
    =?iso-8859-15?Q?Jens_M=FCller?=, Sep 7, 2006
    #1
    1. Advertising

  2. Jens Müller wrote:
    > I would like to have a predifined value for the selection field of file
    > upload, as 90% of the Uploads are the same file.
    >
    > This does not work:
    > <input type="file" name="upfile" value="c:\up.txt">


    Imagine:

    <input type="file" name="stolen"
    value="C:\myAccoutingSoftware\MyCreditCardDetails.dat" style="display:
    none">

    Browsers don't let authors specify values for file inputs.
     
    David Dorward, Sep 7, 2006
    #2
    1. Advertising

  3. > Imagine:
    >
    > <input type="file" name="stolen"
    > value="C:\myAccoutingSoftware\MyCreditCardDetails.dat"
    > style="display:
    > none">
    >
    > Browsers don't let authors specify values for file inputs.


    Hmm, makes sence.

    Is it possible via JavaScript?
     
    =?iso-8859-1?Q?Jens_M=FCller?=, Sep 7, 2006
    #3
  4. Jens Müller wrote:
    >> Imagine:
    >>
    >> <input type="file" name="stolen"
    >> value="C:\myAccoutingSoftware\MyCreditCardDetails.dat" style="display:
    >> none">
    >>
    >> Browsers don't let authors specify values for file inputs.

    >
    > Hmm, makes sence.
    >
    > Is it possible via JavaScript?


    No.
     
    Leif K-Brooks, Sep 7, 2006
    #4
  5. Jens Müller wrote:
    > > Browsers don't let authors specify values for file inputs.

    > Hmm, makes sence.
    > Is it possible via JavaScript?


    No ... for the same reason.
     
    David Dorward, Sep 7, 2006
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rocky Moore
    Replies:
    7
    Views:
    1,767
    mikeb
    Jan 14, 2004
  2. =?Utf-8?B?S2V2aW4gQnVydG9u?=

    Pre-Send Request Headers, Pre-Send Request Content

    =?Utf-8?B?S2V2aW4gQnVydG9u?=, Dec 31, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,089
    =?Utf-8?B?S2V2aW4gQnVydG9u?=
    Dec 31, 2004
  3. Oodini
    Replies:
    1
    Views:
    1,795
    Keith Thompson
    Sep 27, 2005
  4. Ying Zu
    Replies:
    0
    Views:
    210
    Ying Zu
    Jan 8, 2011
  5. Ying Zu
    Replies:
    1
    Views:
    187
    Magnus Lyckå
    Jan 13, 2011
Loading...

Share This Page