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.

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 Well-Known Member

    Messages:
    1,221
    Likes Received:
    109
    Best Answers:
    51
    Trophy Points:
    160
    #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,650
    Likes Received:
    22
    Best Answers:
    12
    Trophy Points:
    115
    #3
    EricBruggema, Oct 1, 2013 IP
  4. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    596
    Likes Received:
    30
    Best Answers:
    18
    Trophy Points:
    100
    #4
    Additionally if your memory_limit configuration is enabled, it should be more than your upload_max_filesize.
    ThePHPMaster, Oct 2, 2013 IP