How do I increase Max File Upload size from 128MB on my WP site?

Avatar
  • Answered
primary domain - playmeo.com
What we have done between Tier I and II:
Made htaccess recursive and added:
php_value post_max_size "500M"
php_value upload_max_filesize "500M"

Modified php.ini:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
max_input_vars = 1000
memory_limit = 512M ; Maximum amount of memory a script may consume (32MB)
post_max_size = 500M

Added to theme's function.php:
@ini_set( 'upload_max_size' , '500M' );

@ini_set( 'post_max_size', '500M');

@ini_set( 'max_execution_time', '300' );

The file I am trying to upload an audio file which is 260MB. All I'm trying to do is increase the max limit - it shouldn't be this hard. Does anyone have some advice?

Avatar
anonymous
Hello,

Thank you for your question on WordPress. Have you tried adding the following code to your wp-config.php file:

define('WP_MEMORY_LIMIT', '96M');

This will grant WordPress more memory which should allow it to process the upload PHP function to handle larger files.

Best Regards,
TJ Edens