mardi 24 février 2015

Increase Size Limit of Media Files Wordpress 4.1


I have edited (created) the php.ini file and the .htaccess file in accordance with this post. I have also found a plug-in (called Upload Max File Size) that claims to raise the file size limit of media files. With the plug-in activated, I see on the add new media screen that the limit has been changed. However, when I attempt to upload a 2.7MB image, I receive the error:



The uploaded file exceeds the upload_max_filesize directive in php.ini.


The contents of php.ini are:



upload_max_filesize = 32M
post_max_size = 32M
max_execution_time = 300


My .htaccess file contains:



# BEGIN WordPress

php_value upload_max_filesize 100M
php_value post_max_size 1M
php_value max_execution_time 300
php_value max_input_time 300

# END WordPress


I am currently hosting the word press site myself and have root privileges to anything.





Aucun commentaire:

Enregistrer un commentaire