Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to handle large file upload in PHP ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 179
    Comment on it

    To handle large file upload in PHP web application, we need to configure PHP.ini file. if you want to upload files greater then 2 Mega Bytes then the default installation of PHP fails. But, we can increase the limit according to the file size with the help of PHP.ini file. it is a configuration file that is used to customize behavior of PHP at runtime. This blog will help you configure your PHP engine for handling such large file transfers.

    To find the location of your php.ini file,you can call the phpinfo() function.

    phpinfo() function will also tell you the current values for the following settings that we need to modify to increase the limit during file upload. upload_max_filesize, memory_limit , post_max_size

    you can edit your php.ini file ( to handle large file transfer/upload ) and set:

    memory_limit = 32M

    upload_max_filesize = 24M

    post_max_size = 32M

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: