maximum size of a file

Discussion in 'PHP' started by jessysmith1234, Sep 30, 2013.

  1. #1
    What is the maximum size of a file that can be uploaded using PHP and how can we change this?
     
    jessysmith1234, Sep 30, 2013 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    In your php.ini you have a setting named upload_max_filesize - it's usually set to 2MB or less - change this, and you MIGHT be able to upload larger files - it depends on what your host allows you to do.
     
    PoPSiCLe, Sep 30, 2013 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    EricBruggema, Oct 1, 2013 IP
  4. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #4
    Additionally if your memory_limit configuration is enabled, it should be more than your upload_max_filesize.
     
    ThePHPMaster, Oct 2, 2013 IP