Photo upload size

I have php.ini file to be able to upload 7m. Post_max_filesize and upload_max_filesize are set to 7M. I have checked to see which php.ini is being used and it is indeed mine. Trying to upload photo still states 2mb max and will not allow bigger files.

  • 114
  • More
Replies (6)
    • Check again: Studio - Dashboard - Host Tools - Server Audit

      There is information about the current php settings.

      image_transcoder.php?o=bx_froala_image&h=746&dpx=2&t=1545549370

      • Thanks but I know how to check that. That's why I'm asking if Andrew Boon  or Alex T⚜️ or another team member might know why the php.ini isnt reflecting the changes I've made in Una.

        • tech66 is right you need to check server audit page for the real values for these settings.

          Also you can open the following URL on your site http://your-site-url.com/path-to-una/studio/dashboard.php?action=phpinfo
          To see phpinfo and where is php.ini for UNA is located by checking "Loaded Configuration File" value.

          • I've done this already. That is why I know which file to edit. It's not reflecting the changes in UNA.

            Configuration File (php.ini) Path     /etc/php/7.2/apache2
            Loaded Configuration File     /etc/php/7.2/apache2/php.ini

            • Baloo and I troubleshooting this issue and he posted a link to some info. This is what fixed it.

              In my loaded php.ini config , my error_reporting values is E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED-> this is wrong!, so i changed it to error_reporting: E_ALL and then restart apache2 server, now everything working fine !                                          

              The production value for error reporting is E_ALL. Since php.ini sees that as an error to have  all the values...it defaults to 8M post and 2M upload

              Big thanks to Baloo 

              • With pleasure, happy to have been able to help you :-)

                Login or Join to comment.