For sure that's a simple question:

do you know how to display a default value in an input tag of type 'file': the classical VALUE attibute doesn't seem to work.

thanks

    It can't be done, for security reasons. Otherwise, you could put a field on a page with a default value (say C:\windows\default.pwd), and submit the form with Javascript as soon as the page opens, uploading a file without the user's knowledge or permission.

    Personally I think you should at least be able to set the types of file to upload, like .jpg, .gif etc...but you can't do that either.

      file inputs' values can't be preset or modified by anything like javascript - for security reasons.

        Write a Reply...