1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Multiple File upload - need help with validating file size

Discussion in 'PHP' started by izbryte, Mar 5, 2012.

  1. #1
    I have this validation script for a multiple file upload form and it works great until I add in the validation for the max file size. This doesn't seem to work at all. I'm at the point, I'm ready to pull my hair out and I'm willing to pay someone to help if necessary.
    Here's my code:

     
    izbryte, Mar 5, 2012 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    3
    Best Answers:
    7
    Trophy Points:
    0
    #2
    maybe the files you uploaded are really over the max file size?
     
    JohnnySchultz, Mar 6, 2012 IP
  3. arpit13

    arpit13 Peon

    Messages:
    283
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this can be an issue of host. check the max_upload_limit in php.ini details. it really can be a pain in ass ,as was for my case
     
    arpit13, Mar 6, 2012 IP
  4. earnnet

    earnnet Member

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #4
    You can try to do some modifications in .htaccess. See wether it's allowed or not.
     
    earnnet, Mar 6, 2012 IP