Increase Maximum Upload File Size 64 Mb userini
Apr 05, 2022
Jordana A.
2min Read
How to Increment the Maximum Upload File Size in WordPress: 3 Ways + Reasons to Exercise it
Are you lot unable to upload big files to WordPress? We've got you covered! Here, we will uncover how to increase the maximum file upload size in WordPress. By the end of the article, you will know how to modify the upload limit to meet your needs.
Download WordPress Cheat Canvas
Three Ways to Increment WordPress Maximum File Upload Size
To modify WordPress' file upload size, you demand to access your hosting control panel and WordPress administrator dashboard. Make sure you have admission to both of them before diving into the tutorial below.
Here are iii ways to increment WordPress' maximum file upload size:
1. Modifying .htaccess File
Many hosting providers allow you to alter the PHP settings via .htaccess file. You can take advantage of this ability to apply php_value upload_max_filesize dominion in this file.
Here'south how this method works:
- Access the WordPress root directory (public_html) via an FTP customer or File Managing director. For Hostinger users, you can access the File Manager in the Files section of your hPanel dashboard.
- Open the .htaccess file and add together the following code to the lesser of the file. One time you're done, save the changes.
php_value upload_max_filesize 128M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300
2. Configuring php.ini File
This method is about suitable for WordPress sites with VPS hosting as shared hosting providers generally don't permit editing the php.ini file. If you're running on shared hosting, make sure to contact your hosting support team and clarify whether or not you can modify the php.ini file.
Here'due south how to increase the maximum file upload size by configuring php.ini file:
- Access the WordPress root directory (public_html) via an FTP client, File Manager, or SSH (if it'due south supported), and so open the php.ini file. If you cannot find the file, create one under the same proper noun and filetype in the root directory.
- Add together the following code to the php.ini file and salvage the changes.
upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300
3. Editing functions.php file
Alternatively, you tin increase WordPress' maximum file upload size past modifying your theme's functions.php file. Despite so, please note that the modification will revert to default if you modify your site'due south theme.
Here'due south how to change the maximum file upload size by modifying functions.php file:
- From your WordPress dashboard, navigate to Appearance -> Theme Editor.
- Open the theme functions file (functions.php) and add together the post-obit code to the file. Once you're done, save the changes.
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );
Reasons to Increase WordPress Maximum File Upload Size
WordPress provides a built-in media uploader. It saves y'all fourth dimension as y'all don't have to connect with FTP clients or use a File Director from your hosting provider. Despite then, the PHP-based uploader has an upload limit for maximum file size. The upload file limit may vary depending on your hosting provider and WordPress configuration.
You can check your WordPress upload file limit by navigating to Media -> Add New from the ambassador dashboard.

While the maximum upload file limit is more than enough to adapt regular use, in that location are cases where you may need to upload big files. This can be problematic as uploading files bigger than the allowed size results in 'the uploaded file exceeds the upload_max_filesize directive in php.ini' fault.
Conclusion
Despite enforcing a maximum file upload size, WordPress allows you to increase its limit. The tutorial in a higher place shows that there are multiple means of increasing WordPress' maximum file upload size. If these methods don't work for you lot, it's best to accomplish out to your hosting provider and permit them alter it for you.
Source: https://www.hostinger.com/tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress
Post a Comment for "Increase Maximum Upload File Size 64 Mb userini"