SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    error handling in upload file

    hi.

    I have some question in uploading file.


    1. I want to know how can i handle the error if i upload file exceed to the upload limit size
    2. How can i upload file 1.5GB


    Thank you in advance.

  2. #2
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Check your php.ini file and make sure maximum allowed file size is set to at least 1.5GB. To find the location of the php.ini you could create a simple script like this and run it:

    <?php
    phpinfo();
    ?>


    Update the file by locating the line like this:

    upload_max_filesize = 20M

    and change the limit to the desirable size.

    1.5GB is rather large. Maybe better just use a FTP program to do the upload.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2012
    Location
    Brisbane Australia
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a list of things I changed in my php.ini file to upload a maximum of 500M
    This first couple are under the heading Resource limits
    max_execution_time = 300
    max_input_time = 600
    memory_limit = 256M
    This one is under a heading called Data Handling
    post_max_size = 510M (If I were you I would change this to = 1600M)
    And the last one is under a heading called File Uploads
    upload_max_filesize = 500M (and change this one to = 1500M)
    But as tom8 says it maybe better to use FTP instead, Cheers

  4. #4
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tom8 View Post
    Check your php.ini file and make sure maximum allowed file size is set to at least 1.5GB. To find the location of the php.ini you could create a simple script like this and run it:

    <?php
    phpinfo();
    ?>




    Hi thank you for the reply,but i dont know how to use the FTP program is it okay to please guide me on this FTP?
    Thank you in advance.

    Update the file by locating the line like this:

    upload_max_filesize = 20M

    and change the limit to the desirable size.

    1.5GB is rather large. Maybe better just use a FTP program to do the upload.

  5. #5
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by studentofIT View Post
    This is a list of things I changed in my php.ini file to upload a maximum of 500M
    This first couple are under the heading Resource limits
    max_execution_time = 300
    max_input_time = 600
    memory_limit = 256M
    This one is under a heading called Data Handling
    post_max_size = 510M (If I were you I would change this to = 1600M)
    And the last one is under a heading called File Uploads
    upload_max_filesize = 500M (and change this one to = 1500M)
    But as tom8 says it maybe better to use FTP instead, Cheers

    Hi.Okay i will try this...thank you for helping me.


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
  •