Results 1 to 2 of 2

Thread: One file upload form for different file types

  1. #1
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default One file upload form for different file types

    I would like to make one form which allows uploads of different file types.

    I know this is possible, however I am struggling with how require x number of a certain file type.

    If I have a form asking for 1 text file, 2 photos, and 1 video file, what is stopping someone from uploading 4 photos?

    I need to validate, but what is the best way? I can't figure out how to validate.

    In my mind this is getting very complicated.

    Thanks!

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    The program will be simple, but you must work for that simplicity. See finfo_file for the central function; see Installing/Configuring for what you need to do to get it (and pay attention to the comments!).
    Last edited by Jesdisciple; 11-03-2008 at 08:58 PM.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

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
  •