Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • PHP change the maximum upload file size

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 255
    Comment on it

    Option 1 :

    You need to set the value of upload_max_filesize and post_max_size in your php.ini :

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M
    
    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M
    

    After modifying php.ini file(s), you need to restart your HTTP server to use new configuration.

    OR

    Option 2 :

    You can change it via an .htaccess file.

    .htaccess files are present in the root folder of your project . htaccess modify configuration for that folder and all sub-folders.

    php_value upload_max_filesize 40M
    php_value post_max_size 42M
    

 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: