Articles in this section

Unable to upload any file via domain File Manager after changing post_max_size and upload_max_filesize values: The file "Test.jpg" is too big. Try to upload this file via FTP

kb: bug Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • In an attempt to upload any file in Plesk > Domains > example.com > File Manager > Upload, the error below is shown:

    PLESK_ERROR: The file "Test.jpg" is too big. Try to upload this file via FTP.

  • Values for PHP parameters post_max_size and upload_max_filesize in /usr/local/psa/admin/conf/php.ini file are set with shorthand notations (K\M\G), for example: 

    CONFIG_TEXT: post_max_size = 16M
    upload_max_filesize = 16M


    CONFIG_TEXT: post_max_size = 2G
    upload_max_filesize = 2G

Cause

This is the Plesk bug with ID #PPPM-13226 which is planned to be fixed in one of the future product updates.

Resolution

Until the bug will be fixed, apply one of the solutions below: 

For RHEL based systems (CentOS/CloudLinux)
  1. Log into the sever via SSH.

  2. Using the vi text editor open the /usr/local/psa/admin/conf/php.ini file and set integer values as below:

    • For 16 Megabytes:

      CONFIG_TEXT: post_max_size = 16777216
      upload_max_filesize = 16777216

    • For 2 Gigabytes:

      CONFIG_TEXT: post_max_size = 2147483647
      upload_max_filesize = 2147483647

  3. Restart psa service:

    # service psa restart 

For Debian based systems (Ubuntu/Debian)
  1. Log into the sever via SSH.

  2. Using the vi text editor open the /opt/psa/admin/conf/php.ini file and set integer values as below:

    • For 16 Megabytes:

      CONFIG_TEXT: post_max_size = 16777216
      upload_max_filesize = 16777216

    • For 2 Gigabytes:

      CONFIG_TEXT: post_max_size = 2147483647
      upload_max_filesize = 2147483647

  3. Restart psa service:

    # service psa restart 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.