SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    Domnican Republic.
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Browse Imagen Button

    Hi, i want to know how to make a browse button that only gets pictures files (jpeg,jpg,bmp,gif), right now the one i have in html it's like this:

    <input type="file" name="file">

    can anyone help me plz?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    The "accept" attribute of the file input should restrict the search to the MIME types you specify (i.e. text/html, audio/mp3, or image/gif), but browser support isn't very good on this point.


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
  •