Uploading big files in PHP...

Discussion in 'PHP' started by redhits, Sep 3, 2009.

  1. #1
    How i can upload big files using PHP ?

    I see that it will upload with no problems files around 2-3 MB , but when i try with a file around 40 MB, it will not upload it. I even tried this HTML extra code
    , but it will just not work ...
    <form enctype="multipart/form-data" action="amanage.php" method="POST">
    <input type="hidden" name="MAX_FILE_SIZE" value="196000000" />
    </form>

    I am running Apache on Windows XP ...
     
    redhits, Sep 3, 2009 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    Try increasing your "upload_max_filesize" option in your php.ini.
     
    ThePHPMaster, Sep 3, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Yes u have to increase the filesize limit in ur php.ini and also php time out limit
     
    Bohra, Sep 3, 2009 IP
  4. G2o

    G2o Guest

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if you do not have access to your php.ini file, you could always try this:

    ini_set("upload_max_filesize", "40M");
     
    G2o, Sep 3, 2009 IP