Form input type="file" problem!!!! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Form input type="file" problem!!!!

muranmuran Posts: 9Member
Can anyone tell me how I can set a default value on a in a form.
Ive tried value="some value" but it doesnt work.
Anyone have any suggestion?
The code Im using looks like this:

the value="c: ext.txt" doesnt work.....



  • James FerraraJames Ferrara Posts: 15Member
    What exactly are you trying to do?

    Is this a form to upload a file?

  • muranmuran Posts: 9Member
    Yepp its a form to upload a file....
    When you enter the input="file" you get a textfield and a browse-button.
    When you browse the file you want the path to that file is written in the textfield...
    I want to have a default value in that textfield.....and still give the user the option of browsing another file....

    : What exactly are you trying to do?
    : Is this a form to upload a file?

  • James FerraraJames Ferrara Posts: 15Member
    if that's the question, it's a simple "input" kinda question.

    a normal field would go like this: and have googoo as the default.

    just try

  • muranmuran Posts: 9Member
    I hav tried that but the value is ignored.... =(

  • digit5000digit5000 Posts: 2Member
    I don't think you can do it. Reason. Well if you can put a default value in this field and you have a onload="submit()" then you can put any file from the clients machine to your server without them knowing. Just a guess.

Sign In or Register to comment.