Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting filetype from an upload box.

    I would like to know how to find out the type of file that a user has submitted via one of my upload boxes.

    I want to do this so that if users select a file other than a .jpg, or .gif file, it will alert them with a warning to try uploading another file.

    thank you!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look at this thread:
    http://codingforums.com/showthread.p...threadid=13079

    Indeed, the search functionality of this forum just works great...

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    chr...
    does this link just a help® ya???
    http://www.htmlgoodies.com/attachp2.html

    n' on it??? theres just a link® to give you the 'code' ya need for different extensions...:O)))

    /me seems to think though that it reallly should be done 'server' side...nottt via the form on your page...


  •  

    Posting Permissions

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