SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile file type input -> select type

    hello ,

    When i upload image on imageshack it let me select only image type file to upload
    but on my website when i upload image it let me select all type of files
    how can i do just like imagehack ?
    thanks.

  2. #2
    SitePoint Addict
    Join Date
    Aug 2006
    Location
    Nantwich, Cheshire
    Posts
    363
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you're using the standard HTML form element (input type="file") you don't have the same options. The imageshack uploader is a quite heavily scripted to perform validation and so on.
    http://www.firenza.net - my homage to a car from the 1970s

  3. #3
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Imageshack use a flash uploader which gives them the ability to check the file type using JavaScript, there are quite a few different JavaScript powered file uploaders but it would be up to you which one you want to use.

  4. #4
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't know what you mean , can you give me example or some keyword to search for?

  5. #5
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)


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
  •