How to Upload Files Bigger Than 8mb in Wordpress

increase media file upload in wordpress

WordPress is a powerhouse with and so many themes and plugins that let you to build merely about whatever kind of website. From ecommerce to a elementary blog, WordPress has you covered. Still, when choosing a web hosting for WordPress, y'all should consider performance, security, and support in the first place.

If you are building a WordPress website that hosts a portfolio with large prototype files or a video hosting site with a single media file size running into GBs, and so you might face a roadblock of non being able to upload media files larger than 25MB (in most cases).

500 Internal Server mistake always seems to come up at the nigh untimely fashion and users suddenly go to find how to get a WordPress website online.

By default, the maximum upload size in WordPress ranges from 2MB to 150MB depending on the settings of your spider web hosting provider is giving by default.

Managed WordPress Hosting Starting from $10/calendar month.

Guaranteed improvement in Cadre Spider web Vitals scores. 3-solar day free trial.

To check what is the current max upload size limit in your WordPress site so navigate to WP Admin → Media → Add New. Y'all will see the electric current max upload size on the lesser as shown in the screenshot.

WordPress increase upload size

If the current max upload size limit meets your need then you tin can leave it as information technology is. Yet, if it doesn't and so don't fret, in that location are many means you can increase the max upload size in WordPress. I am going to highlight the following ways in this tutorial.

  1. Update .htaccess File
  2. Edit Functions.php File
  3. php.ini Pick
  4. Increase Upload Size in Multisite
  5. wp-config.php File
  6. Plugin Method
  7. Contact Hosting Provider

Note: This guide is written to provide all possible solutions. Yet, some may not work on the majority of the web hosts. In this example, the all-time solution is to contact your hosting provider.

ane. Update .htaccess file

If your web server is using Apache and PHP is fix equally an Apache module, and so yous can add a few lines of lawmaking in your WordPress .htaccess file to increase the max upload size in WordPress.

To access your .htaccess file, connect to your server via FTP client and navigate to the folder where WordPress is installed. Open up .htaccess file in a code editor or Notepad and add together the following lines.

php_value upload_max_filesize 64M php_value post_max_size 128M php_value memory_limit 256M php_value max_execution_time 300 php_value max_input_time 300

This will define the max upload size in Megabytes. Replace the numbers as per your requirement. The max execution time and max input time are in seconds. The execution time defines the limit of time spent on a unmarried script. Choose a number that is suitable for your site.

2. Edit Functions.php File

In some cases, you might not be able to admission your .htaccess file or you are more comfortable editing WordPress theme files.

You can easily increase the size limits past adding the following lines of lawmaking in the functions.php file of your theme.

Nevertheless, call up if you change the theme then max upload size will return to its default values until y'all edit the functions.php file of the new theme.

@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );

3. php.ini Option

This is a default file used to configure whatsoever application which runs on PHP. This file contains parameters required for file timeout, upload size, and resource limits. Admission your WordPress root directory using SSH or FTP and await for a php.ini file. In some cases, this file is not visible to the other option would be to create a new file instead.

Open any text editor and create a new file. Copy the following lawmaking and save it as php.ini.

upload_max_filesize = 25M post_max_size = 13M memory_limit = 15M        

increase upload size wordpress in php.ini file

Now, upload that php.ini file using SSH or FTP within the same root binder.

4. Increment Upload Size in Multisite

If you are running WordPress multisite, then upload size tin can be increased from settings. This increment is dependent on your server settings. If your server is set up to 20MB you cannot increase WordPress upload size to 25MB. Still, if your server is set to 20MB your network setting is set up to 15 MB then you can resolve the issue by increasing the upload size to 20MB.

wordpress multisite maximum upload file size

5. wp-config.php File

Another fashion of increasing the upload size in WordPress is to define the size parameter in the wp-config.php file. To practise that, access your WordPress root directory using SSH or FTP and locate a wp-config.php file.

wp-config.php

Open the file in any text editor and add the post-obit lawmaking.

@ini_set( 'upload_max_size' , '20M' ); @ini_set( 'post_max_size', '13M'); @ini_set( 'memory_limit', '15M' );        

Save your changes and it should increase your file upload size.

6. Plugin Method

Not anybody is a fan of writing code or accessing root files using SSH or FTP. For that situation, the plugin comes in handy and luckily at that place is a WordPress plugin bachelor for increasing WordPress upload size. The plugin nosotros will exist using is the Increase Max Upload Filesize plugin.

Go to your WordPress DashboardPluginsAdd new, search "Increase Max Upload Filesize" and then activate and install the plugin. In one case installed, go to plugin settings and but enter the value for upload size.

increase file upload size wordpress plugin

Click theSalve Changes button to apply the new upload size.

seven. Contact Your Hosting Provider

If yous practice not want to edit the files yourself so y'all can always contact your hosting provider to practise information technology for you lot.

If yous are using Cloudways WordPress managed hosting, then you can easily increase the max upload size limits of all your websites on a single server through the options in the platform. It is only a thing of a few clicks and if you are not using Cloudways so y'all tin request a Cloudways demo to Tell us your hosting challenges. Hosting plans for Cloudways involve top providers AWS, Google Compute Engine, Vultr, Linode and DigitalOcean. With such a diverseness of options, no challenge is too big to overcome.

To edit the upload size limit, log in to your Cloudways account navigate to Server nether the Server Settings & Packages edit the Upload Size field as shown in the screenshot. Don't forget to click on Save Changes at the bottom of the screen.

Conclusion

WordPress is a versatile CMS. There is always a mode to do something. If yous are non able to find an answer to whatsoever of your issues pertaining to WordPress, then you lot tin can always go and ask in the ever helping the WordPress community. I am besides a part of that awesome customs, so you can always reach out to me likewise.

Share your opinion in the annotate section. COMMENT At present

Share This Commodity

Customer Review at

"Beautifully optimized hosting for WordPress and Magento"

Arda Burak [Agency Possessor]

Ahsan Parwez

Ahsan is the Community Squad Director at Cloudways - A Managed Cloud Hosting Platform. He loves to solve problems and help Cloudways' clients in any aspect he tin can. In his free time, you can observe him playing RTS PC games.

woodruffbleturejaway.blogspot.com

Source: https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/

0 Response to "How to Upload Files Bigger Than 8mb in Wordpress"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel