Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unable to upload files larger than 2MB - PHP

Discussion in 'EasyApache' started by Akash Tiwari, Aug 22, 2017.

  1. Akash Tiwari

    Akash Tiwari Registered

    Joined:
    Aug 22, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Jammu
    cPanel Access Level:
    Website Owner
    From my android App i m trying to make a HHTP request to upload a picture of size>2MB.I m getting "413" in response.
    My settings for PHP 5.6 are

    allow_url_fopen On
    display_errors Off
    error_reporting E_ALL
    file_uploads On
    include_path .:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php
    log_errors On
    mail.force_extra_parameters no value
    max_execution_time 300
    max_input_time 300
    memory_limit 64M
    open_basedir no value
    post_max_size 128M
    session.save_path /tmp
    short_open_tag On
    upload_max_filesize 128M

    Plz help me....
     
    #1 Akash Tiwari, Aug 22, 2017
    Last edited by a moderator: Aug 22, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,789
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any specific error messages in "cPanel >> Errors" when you encounter this error message in your browser? Also, do you have root access to this server?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice