SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    controlling file upload inputs - <input type="file">

    hi people

    i have a file upload input and i would like to apply a stylesheet to it. i have tried but it didnt seem to have the same effect, presumably because it includes the input text area and the browse button within one form element.

    any ideas?

    thanks

    ..L
    give me all your lentils

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't manipulate file input elements with either CSS or Javascript for security reasons. This is to stop malicvious web site authors from disguising or automating a file upload widget in order to trick a user in to uploading private files from their computer without meaning to.

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Location
    london
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how annoying

    thanks for the advice

    L
    give me all your lentils


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
  •