Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, August 4th at 3pm PST / 6pm EST. Learn more
  • GoDaddy Community
  • Managed WordPress Hosting
  • Managed WordPress Hosting

    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 

    how to change the upload_max_filesize

    I upload a file, but it pop-out " the uploaded file exceeds the upload_max_filesize directive in php.ini". how did I fix it?

    1 REPLY 1
    Helper VI

    Hi @jinjack, in order to change the upload_max_filesize directive, you need to create a file called "php.ini" or ".user.ini" in the root of your site. The content of the file is as follows:


    memory_limit = 1024M
    max_execution_time = 320
    max_input_time = 240
    post_max_size = 120M
    max_input_vars = 2000
    file_uploads = 6
    max_file_uploads = 20
    upload_max_filesize = 100M


    Please check the memory_limit, in this code is set to 1024M, but if your plan gives you less than 1GB of RAM, you should change it accordingly.


    Hope it helps!


    If you find my replies helpful, give me a like or kudo 🙂
    And if I solved your issue, mark it as solution 😄