auto paste command

Discussion in 'PHP' started by dordor, May 18, 2008.

  1. #1
    Hey

    I have a form on my site that is used to upload files (file path box and upload button, form created in php).

    Is there any way I can automatically paste text into the file field?

    For example - I have a file's path on my board (I copied it), I want the form to automatically 'paste' it into the file's field when I open it. than, all I haev to do is press the upload button.

    Is there any way to do it :confused:

    Thanks!!!
     
    dordor, May 18, 2008 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
  3. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #3
    If you mean setting the value of a 'file' input automatically (using Javascript), then no, this cannot be done. This is because it would become a major vulnerability as you could steal your users' files.

    Jay
     
    jayshah, May 18, 2008 IP