SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot jooles's Avatar
    Join Date
    Jun 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Defining File Input Value With JS?

    Code:
    <input type="file" />
    For the above input, is there any way I can change the value? I found that adding: value="asdf" doesn't change anything with a type="file" input.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No, it can't be done because it would be an enormous security hole. It would allow people to upload files from users' computers without them knowing.

  3. #3
    SitePoint Zealot jooles's Avatar
    Join Date
    Jun 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The reason why I wanted to know is I can't figure out how to send files via AJAX. Is sending files via AJAX possible? I hate to say it but I might just end up using iFrames


Bookmarks

Posting Permissions

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