Results 1 to 4 of 4

Thread: Input file field value [Resolved]

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Input file field value [Resolved]

    I've heard that you cannot use javascript to change the .value of an input field of type "file".

    Is this true? If not, can someone show me how it's done?
    Last edited by mendhak; Jun 7th, 2005 at 02:15 AM.

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Input file field value

    Nope you cannot.
    You cannot, because doing that would be insecure. I could steal any file from your computer automatically without you even knowing about it.

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Input file field value

    That reasoning had escaped me. Thanks very much.

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Input file field value

    Quote Originally Posted by mendhak
    That reasoning had escaped me. Thanks very much.

    Your welcome.

    not many people actually think fo that way bit if you were using a PHP script and you could change the value then you could literally upload any file you liked, password files etc

    Cheers,


    RyaNj
    My Blog.

    Ryan Jones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width